~/talk

Safely Handling Dynamic Data with TypeScript

Talkat Node Congress 2021 · 2021-02-18..02-19· [typescript, nodejs]

Claims that compile-time types can match runtime checks by deriving TypeScript types from JSON Schema with TypeBox, and wiring those schemas into Fastify so AJV validates requests before the handler runs. Demonstrates a concrete Fastify POST route, shows VS Code hover types, and proves body.name is a string and body.age is number|undefined at runtime — effectively closing the gap between TypeBox-derived static types and Fastify+AJV runtime validation.

AI-written summary · about

  1. 0:00Introduction to dynamic data
  2. 2:36Challenges of TypeScript
  3. 5:49Introduction to JSON schema
  4. 8:28Leveraging TypeBox
  5. 12:40Implementing type safety
  6. 15:44Code demonstration and wrap
~/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.