Opaque types also known as nominal types are not something that get a special syntax in TypeScript. TypeScript’s type system is structural in its nature, but we can exploit that to add some nominal typing.
🚥 Professional Courses
https://www.booleanart.com/
In this tutorial we will look at the use case for this and then demonstrate how you can achieve this, so lets go 🌹
Final Code On Github: https://github.com/basarat/demo-typescript-opaque-types
TypeScript Lookup Types: https://youtu.be/K0zc_fx3vkk
#basarat #TypeScript #Advanced #JavaScript #Tutorial #5MintuesOrLess
👇 ❤️ Subscribe for MOORE ❤️ 👇
https://www.youtube.com/basaratali?sub_confirmation=1
**Feel Free To Read This Lot**
I'm Basarat, and I love helping developers. More about me:
Microsoft MVP for TypeScript
200K contributions on Stackoverflow. Top Contributor for TypeScript.
Udemy Courses: https://www.udemy.com/user/basaratalisyed/
Creator https://designtsx.com
Book Author: Beginning NodeJS
Book Author: TypeScript Deep Dive
Egghead Instructor: https://egghead.io/q/resources-by-basarat-ali-syed?af=bxr3i
Creator of multiple hot ✨ed Github Open Source projects
Follow me on Twitter: https://twitter.com/basarat
Follow me on GitHub: https://github.com/basarat
Donate: https://www.paypal.me/basaratali
Content Creation Kit (Camera / Lens etc.): https://kit.co/basarat/content-creation
Join to support the channel: https://www.youtube.com/c/BasaratAli/join
Website: https://basarat.com/