Comment by triyambakam
3 years ago
If you mean traditional enums, called unions in Typescript and represented by the pipe symbol, then nothing. But if you mean the named Enum keyword in Typescript, then the problem is that they emit runtime code and aren't type safe.
No comments yet
Contribute on Hacker News ↗