Enums considered harmful

Published: 15 December 2022
on channel: Matt Pocock
211,414
13k

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

  / mattpocockuk  


Watch video Enums considered harmful online without registration, duration hours minute second in high quality. This video was added by user Matt Pocock 15 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 211,414 once and liked it 13 thousand people.