~/talk

The Path to Native TypeScript

Talkat Node Congress 2025 · 2025-04-17..04-18· at 16:45· [nodejs, typescript]

Node.js implements a type stripping runtime that erases TypeScript-only syntax by replacing it with whitespace so source locations stay unchanged, using a customized SWC WebAssembly build wrapped as Amaro. The staged rollout lands an experimental flag (experimental-strip-types in Node 22.6, enabled by default in 23.6) after a PR that landed in 20 days; it supports most erased syntax fast but rejects enums/namespaces unless experimental-transform-types (with source maps) is enabled and forbids running .ts inside node_modules.

AI-written summary · about

  1. 0:00Introduction to Native TypeScript in Node.js
  2. 3:56Challenges in Implementing TypeScript in Node.js
  3. 7:18TypeStripping: Implementing TypeScript in Node.js
  4. 10:48TypeStripping: How It Works and the Amaro Package
  5. 13:48Experimental Strip Types and Transform Types
  6. 15:19TypeScript Limitations and Code Migration
  7. 18:37TypeScript Import Types and Syntax Detection
  8. 21:57Ambiguity in Syntax and Future Steps
~/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.