~/talk

Understanding TypeScript's Structural Type System

Talkat Strange Loop 2018 · 2018-09-26..09-28· [typescript]
links:none on file
slides:none on file

Claims that TypeScript is a structural type system not nominal, that it runs as an NPM package plus compiler and language server, and that teams use it at maximum strictness to catch bugs before runtime. Shows concrete tools and techniques: discriminated unions, control-flow–based type analysis, mapped types and generics (Partial lives in lib), and a Taipings-style tester. Demonstrates real wins: statically eliminated translation and permission bugs and practical adoption across web, mobile and API projects.

AI-written summary · about

  1. 0:00Start
  2. 2:21What is a static type system?
  3. 5:52TypeScript Basics
  4. 7:39Structural Typing
  5. 10:19Sum Types (F#)
  6. 11:36TypeScript Sum Types
  7. 18:40Discriminated Unions
  8. 23:45Substitutability
  9. 25:20Generics are Functions
~/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.