Never use enums in TypeScript. But here's why I've moved away from them: 1. They don't tree-shake well (adds runtime code) 2. They create numeric values that cause subtle bugs 3. They don't work with string literal unions properly What I use instead:
1
0
0