- tooling that can be built on top of it, improving developer experience (example: IntelliSense) &
- it eliminates an entire class of runtime bugs (example: where a function gets passed an object it doesn’t know how to handle and fails at runtime).
Don't Use Enums
I agree with Execute Program. I don't believe the benefits of enums outweigh the complication they add to the TypeScript complier model & the possibility of difficult bugs hidden in build steps.