WP33: The round trip to TypeScript
State: In progress · Done: 7 of 9 · Design note: docs/wp33-round-trip.md
Stages
- R0: the note, the
RUN_UNDER_NODE.mdledger and the TypeScript-reading checklist - R1: the
portabilityclass behind--warn-portability - R2: the typed-array names lose
pushandpop(#335) - R3: the runtime split by host,
runtime/core/with Node and browser adapters - R4:
--emit-ts <dir>with its live differential,tsc --strictand a fuzz mode (#853) - R5's
exacttier:fixin--jsonandnish --fix(#421) - R5's
reviewtier:reviewin--json, NL8006's rewrite to the same IR - R6: compatibility mode (WP28)
- A Bun runtime adapter (deferred)
Next
R6, compatibility mode, which is WP28 on its own staging: its spikes are measured, C0 (the machinery) and C1 (the free tier: optional parameters and defaults, ?., ??, string switch, for...of over a string and overloads) are built, and its next stage is C-lib. R6 is done when WP28 is. Spec: §9.
Not planned
An idiomatic --emit-ts that drops the helpers, a transpiler for arbitrary TypeScript, emitting JavaScript.

