Closed guilima closed 4 years ago
Enum supports reverse mapping which means we can access the value of a member and also a member name from its value. This works for enum [key: string]: number not [key: string]: string and generate a extra code for lookup table.
[key: string]: number
[key: string]: string
resolves #2
Enum supports reverse mapping which means we can access the value of a member and also a member name from its value. This works for enum
[key: string]: number
not[key: string]: string
and generate a extra code for lookup table.resolves #2