Deriving Types From Values 15 exercises
solution

Use an Indexed Access Type to Access a Property

In order to access the group property of ProgramModeMap, we need to use indexed access types.


export const programModeEnumMap = {
GROUP: "group",
ANNOUNCEMENT: "announcement",
ONE_ON_ONE: "1on1",
SELF_DIRECTED: "selfDirected",
PLANNED_ONE_ON_ONE: "planned1on1",
PLANNED_SELF_DIRECT

Loading solution