4 Steps from JavaScript to TypeScript
summary
A simple Express Node webhook that calls a dad‑jokes API and returns SMS replies proves the path: enable pair program with TypeScript in VS Code, run npm install typescript and mpx tsc --init, set target ESNext, outDir dist, turn on allowJs + checkJs to compile and lint existing .js, add @types/node and specific @types (superagent), then convert files one at a time to .ts. The compiler runs, the app still serves jokes, and strictness is optional to enable later.
AI-written summary · about
chapters (8)
- 0:00Introduction to TypeScript
- 11:05Pair program with TypeScript
- 24:19Add TypeScript compiler
- 33:30Check JavaScript with TypeScript
- 38:12Use JS Doc for types
- 42:52Move to TypeScript files
- 49:38Enable strict mode
- 57:04Q&A and resources








