~/talk

Think you know TypeScript? Think again.

Talkat jsday 2025 · 2025-04-07..04-08· [typescript]
slides:none on file

Claims concrete tactics: replace any with unknown and add explicit guards, write type predicates for narrowing so variables truly become strings or numbers, use discriminated unions with an exhaustive never check to catch added variants, apply utility types (Parameters/ReturnType, template-literal keys) and recursive types to generate safe translation keys, extend globals via interface merging (window), and wire API schemas with trpc codegen or OpenAPI+zod so CI fails on breaking contract before runtime.

AI-written summary · about

  1. 0:00TypeScript journey introduction
  2. 1:06Basic types to type safety pitfalls
  3. 2:57Unknown types and type guards
  4. 4:04Type predicates and narrowing
  5. 5:31Discriminated unions and checks
  6. 7:40Utility types for safer code
  7. 9:07String manipulation with types
  8. 10:12Recursive types for nesting
  9. 11:58Interfaces vs types deep dive
  10. 13:45Interface merging use cases
  11. 15:34React props inconsistencies
  12. 16:16Sharing types frontend/backend
  13. 17:42TRPC and GraphQL type sharing
  14. 18:45Code generation and OpenAPI
  15. 20:14CI checks for type safety
  16. 20:55TypeScript improves workflow
~/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.