This course is aimed for using `zod` effectively in projects based on TypeScript (both browser and node.js). The benefits you gain with this course is not just simply coding, but also understanding when/why/how should you perform runtime validation.
`zod` is the missing piece to TypeScript's capabilities, which can guarantee type-safety only in compile-time.
`zod` can be used whenever the compiler cannot guarantee what happens in runtime. And... it's a very frequent usecase, such as HTTP calls, websockets, etc.
In this course you get quickly up and running by:
1. using `zod` with primitives and objects
2. adapting `zod` quickly to existing projects thanks to automatic generators
3. changing the strategy frm type-first to schema-first
4. using error-throwing `parse` or non-error-throwing `safeParse` basing on your needs
5. applying `zod` to the most common usecase - validating API responses
6. handling errors the most convenient way (out of many!)
Take advantage of runtime validation with `zod`. Take advantage of the detailed lessons in this course 🔥
Overview
Syllabus
- Perform Runtime Type-checks on Primitives and Objects with zod
- Generate zod Schemas Automatically using Quicktype App, Extensions and Scripts
- Treat zod Schemas as Single Source of Truth
- Validate HTTP API Response with zod, fetch and axios
- Use parse and safeParse Runtime Type-checks with zod
- Customize zod Error Messages and Handle zod Errors Effectively
Taught by
Tomasz Ducin