Zod + TypeScript: Schema Validation Made Easy
I can easily imagine a job interview question being “What’s the difference between TypeScript and Zod and in what circumstances do you need each?” They are both type validation libraries. Would you ever need both? The short answer is that TypeScript is great but can’t help you at runtime, where you might get data from […]