Рет қаралды 7,453
In this lesson we look at all the reasons why TypeScript enums are not recommended and what are the simple alternatives that you can use that offer greater reliability and future proof code ❤️
🚥 Professional Courses
www.booleanart.com/
Chapters
0:00 Intro
0:18 Not Standardized Yet
0:45 Simple Enums are easy to break
1:55 Not Type Safe
2:40 Lookups cause issues
3:58 Issues with String Enums
5:52 Simple Recommended Pattern
6:48 Additional JavaScript Patterns
8:10 Outro
🏷 #basarat #TypeScript #JavaScript #Tutorial
👇 ❤️ Subscribe for MOORE ❤️ 👇
kzbin.info?su...
🌹 Support 🌹
Join: / basaratali
~
/ basarat
github.com/basarat
basarat.com/
~~ Additional Resources ~~
TypeScript for Professionals:
www.udemy.com/course/typescri...