Enums considered harmful
TypeScript enums are not great. In almost all cases, I use an 'as const' with a sprinkling of type magic to express them. Become a TypeScript Wizard with Matt's TypeScript Course: https://www.totaltypescript.com/ Follow Matt on Twitter https://twitter.com/mattpocockuk