DEV Community

Discussion on: We don't have to use Enums on TypeScript? 【Discussion】

Collapse
 
lexlohr profile image
Alex Lohr

Another issue with enums is that they are reducing portability. If you cast into them, you lose type safety and if you don't, you need extra code to match existing literals to its corresponding item.