TLDR Web Dev · OPINIONS & ADVICE
WHY I DON'T LIKE ENUMS
Summary from the TLDR Web Dev newsletter
TypeScript's implementation of enums is counterintuitive and inconsistent with type-safe JavaScript. It has unexpected behavior when dealing with numerics, incompatibilities with nominal typing, and numerous bugs related to them in the TypeScript repository.