DEV Community

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

Collapse
 
pmejna profile image
Przemyslaw Mejna

There is some truth to that but from my perspective enums are still useful. As an example: you might use enums in the TypeORM, working with MySQL database. There is no coincidence that they are here and they are in many programming languages. There is a lot of usecases like that. And to be honest - usually you use enums In like 0.1% of your codebase so worrying about space in that particular case is pointless.