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

Learn Zod In 30 Minutes

199.8K views on YouTube

Zod is an amazing validation library that focuses on type safety and ease of use. I love Zod and feel that it makes TypeScript even better. It also makes working with user data incredibly easy and in this video I will show you everything you need to know about Zod.

📚 Materials/References:

What Is Zod Video: https://youtu.be/9UVPk0Ulm6U
JavaScript Map Video: https://youtu.be/yJDofSGTSPQ?t=559
JavaScript Map Article: https://blog.webdevsimplified.com/2020-12/javascript-maps
JavaScript Set Video: https://youtu.be/yJDofSGTSPQ?t=753
JavaScript Set Article: https://blog.webdevsimplified.com/2021-01/javascript-sets

🌎 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:33 – What is Zod?
01:15 – Basic usage
05:03 – Basic types
07:00 – Basic validation
13:25 – Object type
16:52 – Array type
18:02 – Tuple types
20:00 – Union type
21:58 – Record type
23:37 – Map type
24:55 – Set type
25:35 – Promise type
26:40 – Advanced validation
27:55 – Error handling

#Zod #WDS #TypeScript