~/talk

Developing TypeScript's Isolated Declarations

Talkat SquiggleConf 2024 · 2024-10-03..10-04· [typescript, developer-experience]
slides:none on file

A new flag in TypeScript 5.5 called --isolatedDeclarations enforces emissionable types so declaration files can be generated without full type checking, enabling parallel builds across projects. Bloomberg with Google and Microsoft prototype a standalone declaration emitter, an IDE quick fix to insert inferred types, and a per-worker AST cache. On a 23-project sample build isolated declarations drops a 33s run to 22s, competes with tsc -b at 27.9s, and with caching yields ~40% faster builds and up to 3x speedups on large CI machines.

AI-written summary · about

  1. 0:00in this talk…
  2. 0:43Titian, TypeScript, and the talk
  3. 1:17what is Isolated Declarations?
  4. 2:10motivation for Isolated Declarations
  5. 3:01building in parallel
  6. 4:04what does TypeScript do?
  7. 6:10parallel for monorepos with --isolatedDeclarations
  8. 6:56the more (companies who need isolated declarations) the merrier
  9. 7:20how it started
  10. 8:15FAQ: “do I have to add type annotations to everything?”
  11. 9:16level 0: no inference
  12. 10:10level 1: trivial inference
  13. 11:43level 2: optimistic inference
  14. 12:40optimistic inference: typeof variable
  15. 13:57optimistic inference: constructor name
  16. 14:53optimistic inference: computed properties
  17. 16:42optimistic inference conclusion: out of scope (mostly)
  18. 17:42making this easier with a quick fix
  19. 18:48how fast can we get?
  20. 20:04how is tsc --b so fast ?!?
  21. 21:00adding an AST cache
  22. 21:56monorepo parallelization results
  23. 22:39what’s in TypeScript 5.5?
  24. 23:18what we still want to do
  25. 24:33what can you do?
  26. 25:25thank you to everyone involved
  27. 25:53audience questions and answers
~/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.