PodRocket cover image

Zod with Matt Pocock

PodRocket

00:00

Can Zod Be Used to Construct Object Types?

Zod is sort of like fronting for the TypeScript compiler when we're developing. You can basically pass anything into Zod and it will turn it into that type at runtime. So you can be really, really loose with what you pass in and really strict with what you get out. That means that Zod kind of like fulfills this need that lots of apps have, which is turning things that you're not quite sure what they are into things that you are absolutely dead sure you know what they are.

Play episode from 04:50
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app