Skip to main content
AmigoFish

Stop Writing Your ID Types Like This

From Web Dev Simplified · · 15 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

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

Back to Web Dev Simplified · Report a problem