~/talk

Lessons Learned Converting Snyk Codebase to TypeScript

Talkat TSConf 2020 · on Friday, 2020-10-09· [typescript]
slides:none on file

Snyk spends 18 months migrating a 300‑repo codebase to TypeScript and reports concrete wins and costs: a one‑day prototype, 300 repos tracked by a script, a necessary forked tap to run tests with ts‑node, 10–14s incremental compile slowdowns until removed allowJs, and a switch from tap to jest. The migration yields immediate bug finds (unused params, wrong shapes), easier refactors via shared types, and a gradual convert‑as‑you‑touch strategy with measurable progress.

AI-written summary · about

  1. 0:00Start
  2. 3:09Union Type
  3. 4:38Intersection Type
  4. 5:20Interface inside an interface
  5. 6:04Enums
  6. 6:59Type checking
  7. 7:28Unused code
  8. 7:39Type inference
  9. 8:10Signature hints
  10. 9:12tsconfig.json
  11. 10:26Custom Tap script
  12. 15:32Example conversion js = ts
  13. 20:39Random extra parameters
  14. 22:30Cat type
  15. 22:49Animal type
  16. 23:00Cat API body type
  17. 24:01Cat Service
~/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.