New Features in TypeScript 2 and beyond
summary
Shows concrete TypeScript 2+ features and how they behave with real JS code: allowJs/checkJs lets projects keep .js files while enabling type checking; async/await and generators transpile to ES5; object spread and destructuring preserve types; strictNullChecks and flags like noImplicitAny/noImplicitThis catch real runtime errors; discriminated unions plus keyof with generics enable exhaustive switch checks using never; lookup types extract nested payload shapes for safer APIs.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:33Code Review
- 10:00AsyncAwait
- 15:00Generators
- 19:15Merge Objects
- 21:30Prototypes
- 28:55No implicit any
- 36:24Strict no checks
- 39:17Generics
- 41:47Declaration Spaces
- 44:04Lookup Types
- 50:56Person Keys
- 53:11String
- 55:06Match Types
- 56:53ReadOnly State
related talks
49mModern TypeScript is amazing!
01h 01mDeconstructing TypeScript’s Type System
19mYou don't know TS: often unknown parts of TypeScript
24mTypeScript for JavaScripties
51mTypeScript - Beyond the Basics
18mTypeScript: What’s New in 2.2
01h 05mBusy TypeScript Developer’s Guide to Advanced TypeScript
31mTypeScript for JavaScripties
