TypeScript - Beyond the Basics
summary
Covers concrete TypeScript techniques: using generics for type-safe collections, combining classes with intersection types and a runtime mixin function that copies prototypes (example creates a billable+programmer object and works with VS Code intellisense), modeling failure as a Union type programmer|lookupFailed and distinguishing cases with type guards, demos run with TS-Jest, and the reminder that type safety exists at compile time only because emitted JavaScript is plain arrays and objects.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 4:19Datatypes
- 6:23Generics
- 10:51Inheritance
- 12:39Composition Over Inheritance
- 13:21Intersection Types
- 20:08Visual Studio Code
- 22:39Union Types
- 23:53Union Types Example
- 31:36Type Guard
- 34:24Alternative Solution
- 42:33String literals
- 43:32String literals vs enumerations
- 48:12Wrapping up
- 49:40Outro
related talks
31mTypeScript for JavaScripties
40mTypeScript Generics: Practical Fun!
01h 05mBusy TypeScript Developer’s Guide to Advanced TypeScript
01h 01mAdvanced TypeScript Type Utilities
21mAdvanced TypeScript
24mTypeScript for JavaScripties
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
31mTypeScript Kung Fu
