~/talk

A Deep Dive Into Advanced TypeScript: A Live-Coding Expedition

Talkat Voxxed Days Zürich 2024 · on Thursday, 2024-03-07· [typescript]
links:none on file
slides:none on file

Live coding in VS Code demonstrates exact patterns and working code: using map types and template literal types to auto-generate every margin/padding key, intrinsic Capitalize to add an onX prefix, recursive generics to build fixed-length Tuples (with the compiler hard stop around 999), infer to extract nested Promise/array types, never + satisfies to force exhaustive switch checks at compile time, and branded types plus assertion guards to make a true Email string. A small CSS/arithmetic validator and a VS Code TypeScript Worksheet plugin are shown and run successfully.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Map Types
  3. 5:00Template literals
  4. 9:00Never type
  5. 13:30Runtime safety
  6. 17:40Inference
  7. 30:08Typ Guard
  8. 37:08Questions
~/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.