~/talk

Keep alive your typescript definitions using Zod

slides:none on file

Claim: TypeScript types vanish at build time and Zod keeps them alive at runtime. Concrete setup: a React demo fetches orders from a JSON API, a schema mirrors the Order shape and gets converted to a TS type, then the response is checked with parse and safeParse. Changing amount from number to string produces a Zod error that shows the path (first item total.amount), so the validation layer logs or forwards the error to Sentry and prevents bad data from corrupting UI.

AI-written summary · about

  1. 0:00Introduction
  2. 0:43TypeScript limitations
  3. 3:00Introducing Zod
  4. 10:09Demo without Zod
  5. 14:09Demo with Zod
  6. 18:55Key benefits
~/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.