TypeScript 7.0.2
TypeScript 7.0.2 has been released — the first stable release following the landmark TypeScript 7 rewrite. This version represents a complete native port of the TypeScript compiler to Go, delivering up to 10x faster performance across the board.
What's New in TypeScript 7.0
TypeScript 7 is a ground-up rewrite of the compiler and language service in Go. The core team ported the entire codebase faithfully, maintaining the structure and logic of the original TypeScript code while unlocking native code speed and shared-memory multithreading.
Key highlights include:
- Native Go compiler — The entire type-checking and emit pipeline has been rewritten in Go, yielding speedups between 8x and 10x on typical codebases.
- Multithreaded type checking — Type checking is now parallelized across available CPU cores. Large projects see dramatic reductions in check times.
- Project reference builder parallelization — Building projects with references is now parallelized, cutting CI times significantly.
- Single-threaded mode — For environments where multithreading isn't appropriate, a single-threaded compatibility mode is available.
Performance Benchmarks
On real-world codebases, TypeScript 7.0 shows remarkable improvements:
- VS Code codebase — Time to first error dropped from 17.5 seconds to under 1.3 seconds (13x faster).
- Slack — Type-checking in CI went from 7.5 minutes to 1.25 minutes, eliminating 40% of merge queue time.
- Canva — Language service startup improved from 58 seconds to 4.8 seconds.
- Microsoft News Services — Saved 400 hours per month waiting for CI builds.
Running Side-by-Side with TypeScript 6.0
TypeScript 7.0 does not ship with a stable programmatic API yet — that's coming in 7.1. To bridge the gap, TypeScript 7 ships alongside a @typescript/typescript6 package that re-exports the TypeScript 6.0 API, allowing tools that need the old API to continue working while you adopt the new compiler for your build and editor workflows.
Breaking Changes and New Behaviors
- JavaScript analysis reworked — JSDoc-based analysis is now more consistent with TypeScript file analysis. Some patterns that worked in TS 6 may need updates.
- Template literal types — Now preserve Unicode code points instead of splitting on UTF-16 code units.
- Enum patterns — Values cannot be used where types are expected without explicit
typeof.
Editor Experience
VS Code users can install the dedicated TypeScript 7 extension. Visual Studio automatically enables TS 7 based on workspace settings. The new language server has reduced failing commands by over 80% and server crashes by over 60% compared to TS 6. Note that Vue, MDX, Astro, and Svelte projects will need to continue using TS 6 for now until those tools update their integrations.
How to Upgrade
Install the latest version via npm:
npm install -D typescript@latest
Or update your package.json to "typescript": "^7.0.2". Check the official TypeScript 7 migration guide for detailed upgrade instructions.
TypeScript 7.0.2 is available now. Download it via npm and experience the new native era of TypeScript tooling.