1enum Enum {
2 some = 'some text here',
3 other = 'other stuff here'
4}
5
6(Object.keys(Enum) as Array<keyof typeof Enum>).map(x => {
7 console.log(TagEnum[x])
8// Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof TagEnum'.
9// No index signature with a parameter of type 'string' was found on type 'typeof TagEnum'.
10})
11