~/talk

The long-tail of type safety

Talkat Reactathon 2023 · 2023-05-02..05-03· [typescript, api-design]
links:none on file
slides:none on file

TypeScript is not sound and still allows runtime exceptions; the talk shows concrete fixes: enable strict and noUncheckedIndexedAccess in tsconfig, add ESLint bans on any / non‑null assertions, and replace built‑in lax defs (JSON.parse, Array.isArray) or use TS Reset to make them unknown by default. For I/O boundaries it demonstrates schema validation with Zod, generating types for fetch endpoints or using trpc / Prisma for end‑to‑end types, and forces parse/validate before using external data.

AI-written summary · about

  1. 0:00The dream of type safety
  2. 1:00Pragmatism versus soundness
  3. 3:53Addressing TypeScript gaps
  4. 5:15Strict configuration
  5. 7:49Using linting for safety
  6. 9:22Improving built-in types
  7. 11:17Validating I/O boundaries
  8. 14:19End-to-end type safety
  9. 17:47Routing and final thoughts
~/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.