2min chapter

Syntax - Tasty Web Development Treats cover image

Zod Schema Validation and Type Generation

Syntax - Tasty Web Development Treats

CHAPTER

Zod

Joy doesn't use static type inference. So that means you have to write your types as well as your validations. It's missing object message methods like partial or deep partial. This one has a little bit more, but it's missing promise schemasMissing function schemas non-errant non empty arrays with proper typing Object methods again. ZOD is basically what it's done is it's taken The ideas of all of these other tools and it's like well, what if we just did it? With everything no compromises do it well! And then at the end of the day ship a library that is like I Said this thing is small. Let me pop open exactly how small it

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode