Don’t use TypeScript’s string enums

I’ve written about TypeScript enums in the past, and back then I encouraged the use of enums with string values instead of numeric ones due to the improved type safety and debuggability you get. This is still true—you should avoid numeric enums in TypeScript wherever possible—but I no longer think that you should reach for string enums as your first option. There’s an even better way of writing…