TypeScript for JavaScripties
summary
Covers practical TypeScript fundamentals: explains JavaScript plus a type system, shows the compiler, language service and type checker, demonstrates union types and literal narrowing with concrete examples (prompt returns string|null), teaches structural object typing and discriminated union patterns, walks through function return types including never, shows tuples used for React-like state, and demos a typescript-eslint lint rule that autofixes an unnecessary await and can remove about a third of dead code.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:47Why TypeScript matters
- 3:33Type annotations and intent
- 6:39Understanding types and unions
- 9:51Primitives vs literals
- 12:21Object types and structural typing
- 15:28Discriminated unions
- 19:41Function types and returns
- 23:32Array and tuple types
- 26:00IDE features and tooling
- 27:27Linting with TypeScript
- 29:11Recap and resources
related talks
24mTypeScript for JavaScripties
51mTypeScript - Beyond the Basics
24mTypeScript: Static types for JavaScript
41mIntroduction to TypeScript
59mA Deep Dive into Advanced TypeScript: A Live Coding Expedition
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
33mTypeScript - JavaScript you are gonna love
48mDeep Dive into Advanced TypeScript: A Live Coding Expedition
