DEV Community

Discussion on: Typescript Enums are bad!!1!!!1!!one - Are they really?

Collapse
 
karfau profile image
Christian Bewernitz

I think it's worth mentioning that there is also the option to use const enum which will only leave the raw literals in the compiled code.
But since they come with their own pitfalls, it's also not a solution for everybody.

I guess that the amount of choices is not realy helping in this situation and might be one of the reasons why people are not embracing them.