Busy TypeScript Developer’s Guide to Advanced TypeScript
summary
Explains that TypeScript uses structural subtyping (object literals X/Y/Z) rather than nominal typing, demonstrates union types like string|number with a padLeft type guard and type assertions, and contrasts intersection types via F1/F2 function signatures. Shows tuples and destructuring, decorators that call Object.seal or wrap getters to trace access, and use of Symbol.iterator and generators to produce iterable streams. Covers generics with <T> identity examples, introduces conditional types (TS 2.8) and never (≈2.3) and sketches currying implemented via conditional/type-tuple tricks.
AI-written summary · about
chapters (30)
- 0:00Intro
- 0:36Nominative Typing
- 1:03Structural Subtyping
- 3:06Union Type
- 4:32String
- 6:10Array
- 6:30Union
- 7:00Intersection
- 9:27Tuples
- 12:15enums
- 12:50decorators
- 19:17class decorator
- 19:33replace class definition
- 20:01seal decorator
- 20:49method decorator
- 21:00property descriptor
- 24:51property decorators
- 25:02access decorators
- 25:48parameters decorators
- 27:05decorator factories
- 28:29order of evaluations
- 29:23unique names
- 31:28iterators
- 32:59iterator
- 34:31generator
- 39:22infinite streams
- 40:53generics
- 42:51identity
- 46:02identity function
- 54:11default types
related talks
51mTypeScript - Beyond the Basics
01h 01mDeconstructing TypeScript’s Type System
52mTypescript Deep Dive
31mTypeScript for JavaScripties
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
24mTypeScript for JavaScripties
38mUnderstanding TypeScript's Structural Type System
21mAdvanced TypeScript
