~/talk

TypeScript in Node.js: Strengths, Limits, and the Future

Talkat NodeTLV 2025 · on Tuesday, 2025-12-16· [typescript, nodejs]
slides:none on file

Node.js v22+ runs .ts files without transpilation but it only strips types, it does not type‑check; runtime uses the Amaro pipeline built on SWC for fast type‑stripping, so stack traces align and no source maps are needed. Limitations: packages in node_modules must still ship JavaScript, node never enforces types, enums/namespaces/decorators/parameter properties aren’t erasable, and import type + allowImportingTsExtensions / module: nodeNext / noEmit are required for a sane workflow. Use tsc or ESLint autofixes to keep code erasable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19What is TypeScript
  3. 3:29Running TypeScript in Node.js
  4. 4:54Node.js TypeScript support
  5. 7:25TypeScript in Node modules
  6. 8:08Type checking in Node.js
  7. 9:11TypeScript config for Node
  8. 10:59TS extensions and ESM
  9. 13:30ESM vs CommonJS in TypeScript
  10. 14:55Type stripping vs transformations
  11. 18:31How type stripping works
  12. 20:17Ensuring erasable syntax
  13. 21:21Replacing enums and namespaces
  14. 23:07Type imports and decorators
  15. 25:37The future of enums
  16. 27:44Why choose type stripping
  17. 28:50Future of TypeScript and JavaScript
  18. 30:16Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.