TLDR Web Dev · OPINIONS & ADVICE

WHY I DON'T LIKE ENUMS

totaltypescript.com4 min read

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.