total-typescript/zod-tutorial(opens in a new tab)
Language: TypeScript
A crash course on Zod - a schema validation library for TypeScript
- stars
- 640
- watchers
- 6
- forks
- 188
- open issues
- 18
- Last updated
- 07/31/2026
Language: TypeScript
A crash course on Zod - a schema validation library for TypeScript
This Zod tutorial will give you everything you ever needed to know about Zod - an amazing library for building type-safe AND runtime-safe applications.
# Installs all dependencies npm install # Asks you which exercise you'd like to run, and runs it npm run exercise
You'll notice that the course is split into exercises. Each exercise is split into a *.problem and a *.solution.
To take an exercise:
npm run exerciseThis course encourages active, exploratory learning. In the video, I'll explain a problem, and you'll be asked to try to find a solution. To attempt a solution, you'll need to:
You'll know if you've succeeded because the tests will pass.
If you succeed, or if you get stuck, unpause the video and check out the *.solution. You can see if your solution is better or worse than mine!
Say thanks to Matt on Twitter or by joining his Discord. Consider signing up to his Total TypeScript course.
Alias: npm run e
Open a prompt for choosing which exercise you'd like to run.