TypeScript 7 has shipped with a groundbreaking change: the entire compiler has been rewritten from JavaScript into Go, delivering up to 12x speed improvements and significant memory reductions.
Key Performance Numbers
- Type checking is 8 to 12 times faster on real-world projects.
- VS Code’s own codebase type-checking dropped from 126 seconds to just 11 seconds.
- Memory usage is down by up to 25%.
- First error detection in VS Code went from 17 seconds to under 1.5 seconds.
- Language server crashes decreased by over 60%.
Why the Speed Leap?
The shift to a native Go binary eliminates the overhead of running within a JavaScript engine. Go enables parallel type checking across CPU cores, configurable with a new --checkers flag. The watch mode was also rebuilt from scratch for faster iteration.
Early Adopters Report Massive Gains
- Slack: CI type checking reduced from 7.5 minutes to just over 1 minute.
- Canva: 58 seconds down to under 5 seconds.
- Microsoft: Saving 400 build hours per month across its projects.
What You Need to Know Before Upgrading
- Strict mode is now enabled by default, which may surface new errors.
- A few older compiler options have been removed.
- Vue, Svelte, and Angular plugin support is not yet ready.
- Migration is straightforward: same
tsccommand, just install the new npm package.
TypeScript 7 offers a dramatic speed boost, but teams using front-end frameworks may want to wait for plugin updates before making the switch.