~/talk

Decoding Perplexing TypeScript

Talkat JSConf Budapest 2024 · 2024-06-26..06-28· [typescript]
slides:none on file

Decodes real, gnarly TypeScript types step by step and shows actual tools used: TypeScript utilities like generics and unions, conditionals, type inference, Exclude/Pick/Omit, and mapped type modifiers. Builds a validator-style type that extracts only the "valid" keys from an object by mapping keys, stripping optionality, excluding null, and indexing results; it resolves correctly in examples but reveals a gotcha: optional properties become unions with undefined and can turn keys into never.

AI-written summary · about

  1. 0:00Introduction to the labyrinth
  2. 2:47Level 1: Truthy types
  3. 6:58Level 2: Omit utility
  4. 10:56Level 3: Type inference
  5. 14:03Level 4: The final boss
  6. 25:08Escaping and conclusion
~/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.