Deriving Types From Values 15 exercises
Problem

Pass a Union to an Indexed Access Type

Consider this programModeEnumMap with different values:


export const programModeEnumMap = {
GROUP: "group",
ANNOUNCEMENT: "announcement",
ONE_ON_ONE: "1on1",
SELF_DIRECTED: "selfDirected",
PLANNED_ONE_ON_ONE: "planned1on1",
PLANNED_SELF_DIRECTED: "plannedSelfDirected",
} as const;
type Pr

Loading exercise