Stop Writing Your ID Types Like This
Open with LBRYBranded types are a niche TypeScript feature that don’t make much sense in small projects, but as soon as your project grows in size or complexity they are a must have. In this video I explain everything you need to know about branded types as well as how to integrate them with Drizzle and Zod.
📚 Materials/References:
Data Access Layer Video: https://youtu.be/Av7KqJVLiYc
🌎 Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:29 - Problem Branded Types Solves
02:50 - Creating Basic Branded Type
08:50 - Advanced Branded Types
10:46 - Zod Integration
12:48 - Other Branded Type Integrations
#TypeScript #WDS #BrandedTypes
...
https://www.youtube.com/watch?v=aP6w2OzidYM