~/talk

Deep Dive into Advanced TypeScript: A Live Coding Expedition

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [typescript]
slides:none on file

Hands-on live coding that builds concrete TypeScript utilities: a to‑do demo that lives purely in types, a mapped‑type event system with template literal keys and Capitalize, template‑literal validators for RGB and CSS tokens, conditional types using never for compile‑time empty‑string and exhaustive‑switch safety, infer/awaited recursion to unwrap nested Promises and generate fixed‑length tuples (recursion limit ~999), a typed Angular reactive‑form path generator, branded primitives for email/positive‑number safety, and a 40‑line compile‑time math‑expression validator; code on GitHub.

AI-written summary · about

  1. 0:00Introduction
  2. 2:11Mapped types
  3. 6:01Template literals
  4. 10:31Never type and conditionals
  5. 18:24Infer and recursion
  6. 27:53Recursive path types
  7. 34:24Branded types and wrap-up
~/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.