Video Description
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.
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-typesTypeScript 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.comBook Author: Beginning NodeJS
Book Author: TypeScript Deep Dive
Egghead Instructor:
https://egghead.io/q/resources-by-basarat-ali-syed?af=bxr3iCreator of multiple hot ✨ed Github Open Source projects
Follow me on Twitter:
https://twitter.com/basaratFollow me on GitHub:
https://github.com/basaratDonate:
https://www.paypal.me/basarataliContent Creation Kit (Camera / Lens etc.):
https://kit.co/basarat/content-creationJoin to support the channel:
https://www.youtube.com/c/BasaratAli/joinWebsite:
https://basarat.com/