A Deep Dive into Advanced TypeScript: A Live Coding Expedition
summary
50 minutes of live coding that demonstrates concrete TypeScript techniques: uses map types and template literal types to auto-generate prefixed event handlers and a CSS margin/padding key set, builds a compile-time CSS validator and an arithmetic-expression validator that fail at type-checking, explains never/satisfies for exhaustive switches and infer-based recursion to unwrap nested Promises, arrays and to generate fixed-length tuples (notes the 999 recursion limit), and shows branded primitives for safer IDs/emails; all examples compile and are on the linked GitHub.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:55Map types in TypeScript
- 6:33Template literals for type narrowing
- 12:33Never type for safety
- 19:55Infer keyword
- 24:09TypeScript recursion
- 34:51Branded types
- 48:11Compile-time validation
- 49:36Q&A
related talks
48mDeep Dive into Advanced TypeScript: A Live Coding Expedition
44mA Deep Dive Into Advanced TypeScript: A Live-Coding Expedition
43mA Deep Dive into Advanced TypeScript: A Live Coding Expedition
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
44mA Deep Dive Into Advanced Typescript: A Live Coding Expedition
31mTypeScript for JavaScripties
54mThe Fun Side of Advanced TypeScript: An Interactive Coding Session
51mTypeScript - Beyond the Basics
