Build Fully Type Safe Projects with TypeScript and Zod
summary
Demonstrates using Zod with TypeScript to get real runtime guarantees: validates process.env into strict enums, parses search params and URL-driven UI state, and uses ky to fetch APIs then throws 422 on schema mismatch so broken contracts fail fast. Shows Zod infer to derive TypeScript types, refinements and superRefine for password and date‑range checks, and a Remix/react‑hook‑form pattern that centralizes validation and reduces fragile useEffect logic.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 4:23TypeScript limitations
- 7:11Why Zod matters
- 12:21Practical Zod examples
- 16:33Validating search params
- 19:25API response validation
- 24:02Backend request validation
- 29:16Form validation with Zod
- 34:14Closing thoughts
- 35:39Q&A session
related talks
31mEscaping the Phantom Zone of Insecure Data: Build Safer Applications with zod
23mType-safe forms for React using Zod
21mKeep alive your typescript definitions using Zod
21mBeyond Type Checking Building Bulletproof TypseScript Applications
15mTypescript. Runtime. And In Between.
30mWith Zod, Fight Any-gration at Your Borders
49mTypescript. Runtime. And in Between.
15mValidate HTTP request with HttpClient & Zod - Lightning talk
