Deriving Types From Values 15 exercises
solution

Pass a Primitive to an Indexed Access Type

If you think about it, the keys of the programModes array are 0, 1, 2, 3, 4, and 5:


export const programModes = [
"group",
"announcement",
"1on1",
"selfDirected",
"planned1on1",
"plannedSelfDirected",
] as const;

For example, we can access the first element of

Loading solution