Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Stop Writing Your ID Types Like This

43.5K views on YouTube

Branded 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