Thinking in TypeScript
summary
TypeScript is framed as a practical tool for JavaScript: adding annotations reveals real, fixable problems in running code. Applied to Ember/Polymer work (adopted 2015) and with strictNullChecks enabled in TypeScript 2.0 (2016) it surfaces concrete bugs — three in an example: an uninitialized candidates array, an unchecked find returning undefined, and a slice-on-undefined — all fixed with explicit union types and initialization. Annotating the measure function replaces five minutes of guesswork with an immediate, accurate signature.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 0:42Skylight Buddy Ember
- 1:41TypeScript
- 2:52Understanding a function
- 4:16Checking the target parameter
- 7:30Checking the target
- 11:04Multiple variables
- 12:06Colon syntax
- 13:32Position
- 14:11undefined
- 15:54ratenames
- 16:09casing
- 16:28naming
- 17:13bugs
- 19:45arrayfine
- 20:04undefined value
- 20:34Strict no checks
- 21:22Fix ignore case flag
- 21:46Fix undefined
- 22:32Summary
- 23:12undefined returns
- 24:29property access
- 24:47missing function arguments








