TypeScript for C++ programmers
summary
Compares C++ expectations to concrete TypeScript behavior: shows installing with npm install --save-dev typescript, initializing and compiling with npx tsc and tsconfig, and running output with node; demonstrates the classic JavaScript this vs arrow-function bug and that TypeScript still emits JavaScript even when compile errors exist (surprising). Explains structural typing, generics, utility types, const vs readonly semantics, and using .d.ts declaration files and the DefinitelyTyped ecosystem to give type-safe bindings to existing JS libraries.
AI-written summary · about
chapters (16)
- 0:00Start
- 1:18WHAT THIS TALK IS AND ISNT
- 2:25IT ALL STARTED WITH THE WORLD WIDE WEB
- 4:48A GOOD FOUNDATION
- 5:19JAVASCRIPT IS NOT PERFECT
- 10:23TYPESCRIPT FROM A DISTANCE
- 16:10TYPESCRIPT BASICS
- 16:31TYPESCRIPT HISTORY
- 17:13FUNCTIONS
- 19:21CLASSES AND INTERFACES
- 22:14GENERICS
- 25:35THE TYPES OF TYPESCRIPT
- 26:55"ADVANCED" TYPESCRIPT
- 27:15STRUCTURAL TYPE SYSTEM
- 36:46UTLITY TYPES
- 45:09SUMMARY








