illustration for Effective Runtime Type Checks with Zod
pro

Effective Runtime Type Checks with Zod

Instructor

Tomasz Ducin

48m closed-captioning
·
6 lessons
Published 2 weeks ago
|
Updated 2 weeks ago

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 🔥