~/talk

The Lies we Tell Ourselves using TypeScript

Talkat NG-BE 2023 · 2023-03-23..03-24· [typescript]
slides:none on file

An actual SDK example compiles under TypeScript yet crashes at runtime: a fetch result.json annotated as meta swappy people hides any vs unknown behavior so types are false, catch clauses assume SyntaxError, function overloads promise species while implementation returns people, and appending mutates arrays without type widening. The talk shows concrete mitigations—declaration merging, unknown for JSON and catch variables, conditional types instead of overloads, and generics—and then demonstrates where each mitigation still breaks, ending with 4 mitigations.

AI-written summary · about

  1. 0:00Start
  2. 4:33Step by Step
  3. 5:53A Tale of Fetch
  4. 11:05The Theme is Dark and Full of Errors
  5. 13:34The Matrix Overloaded
  6. 17:12The Unexpected Virtue Of Ignorance
  7. 19:17Adding Generics
  8. 25:02I wouldn't want to work without it.
~/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.