I'm using typescript 3.7 Given
enum InformationSection {
Education = 'Education label',
Resume = 'Resume label'
}
the code
InformationSection["Education"]
returns 'Education label' and it's a valid statement but if I write
Object.keys(InformationSection).map(x => InformationSection[x])
then I get the following error:
Property 'Education label' does not exist on type 'typeof InformationSection'
what's wrong here?