~/talk

Build Fully Type Safe Projects with TypeScript and Zod

Talkat Connect.Tech 2024 · 2024-11-18..11-20· [typescript, developer-experience]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 4:23TypeScript limitations
  3. 7:11Why Zod matters
  4. 12:21Practical Zod examples
  5. 16:33Validating search params
  6. 19:25API response validation
  7. 24:02Backend request validation
  8. 29:16Form validation with Zod
  9. 34:14Closing thoughts
  10. 35:39Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.