~/talk

4 Steps from JavaScript to TypeScript

Talkat Developer Summit 2020 · 2020-11-21..11-22· [typescript]
slides:none on file

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

  1. 0:00Introduction to TypeScript
  2. 11:05Pair program with TypeScript
  3. 24:19Add TypeScript compiler
  4. 33:30Check JavaScript with TypeScript
  5. 38:12Use JS Doc for types
  6. 42:52Move to TypeScript files
  7. 49:38Enable strict mode
  8. 57:04Q&A and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.