TypeScript 7.0: the compiler in Go and what it means for projects
On 8 July 2026 Microsoft released TypeScript 7.0, the first release built on a new codebase in Go. According to Microsoft, the compiler is typically 8 to 12 times faster than TypeScript 6.0 on full builds. In practice, though, one sentence from the announcement matters most: TypeScript 7.0 does not ship with a programmatic API. Tools that embed TypeScript therefore keep running on TypeScript 6.0 for now, including Vue, Astro and Svelte. If you want to adopt TypeScript 7, move to TypeScript 6.0 first, fix its deprecations and then check which tools in your project need an API.
What is TypeScript 7.0?
TypeScript 7.0 is a native port of the existing compiler to Go. According to Microsoft, the port was done as faithfully as possible, keeping the structure and logic of the original codebase so that both compilers produce consistent results. What is new is native code, shared memory multithreading and a number of additional optimisations.
The beta came out on 21 April 2026, the release candidate on 18 June 2026. According to Microsoft, TypeScript 6.0 from 23 March 2026 was the last release based on the previous JavaScript codebase and was explicitly meant as the bridge between 5.9 and 7.0. TypeScript 7 is installed via npm as before:
npm install -D typescript
That gives you the new tsc in your project.
How much faster is the compiler?
For full builds Microsoft cites a typical speedup of 8x to 12x and backs it with measurements on large open source projects, taken on the same machine with the default of four type-checkers. One example: the VS Code codebase took 125.7 seconds with TypeScript 6 and 10.6 seconds with TypeScript 7, a factor of 11.9. For the other projects in the table the factor lies between 7.7 and 8.9. Memory use over a build also dropped in every listed case, by 6 to 26 percent depending on the project.
In the editor the difference is similar according to Microsoft: in the VS Code codebase it previously took about 17.5 seconds from opening the editor to seeing the first error, and with TypeScript 7 it takes under 1.3 seconds.
These are Microsoft’s own measurements, and Microsoft itself writes that results will differ across projects and machines. Only your own measurement tells you more.
What do the new flags control?
TypeScript 7.0 parses, type-checks and emits in parallel. For type-checking, the compiler creates a fixed number of workers, four by default. The --checkers flag changes that number. More workers can speed up large projects but cost more memory. On machines with fewer cores and less memory, Microsoft names CI runners as an example, a lower number can make sense. In rare cases a different number of checkers may surface order-dependent results. According to Microsoft, a fixed number across build environments helps ensure everyone gets the same results.
--builders controls how many project references are built at once under --build. That mainly helps monorepos but multiplies with --checkers. --singleThreaded disables parallelisation entirely, for example for debugging or in environments with very limited resources. --checkers and --builders are marked as experimental.
What changes in the code?
TypeScript 7.0 is made to be compatible with TypeScript 6.0’s type-checking and command-line behaviour. According to Microsoft, practically any code that compiles cleanly with TypeScript 6.0, with stableTypeOrdering on and without ignoreDeprecations set, should compile identically in 7.0. At the same time, 7.0 adopts 6.0’s new defaults and turns everything 6.0 deprecated into hard errors.
The changed defaults include strict: true, module: esnext, rootDir: ./ and types: [], among others. Microsoft considers the last two the most surprising, but they are easy to mitigate. If your tsconfig.json sits outside src, set rootDir explicitly. If you rely on global declarations, list the packages under types:
{
"compilerOptions": {
"rootDir": "./src",
"types": ["node", "jest"]
},
"include": ["./src"]
}
No longer supported are, among others, target: es5, downlevelIteration, baseUrl, moduleResolution: node (that is node10) and classic, as well as the module formats amd, umd, systemjs and none.
Why do you still need TypeScript 6.0 for now?
TypeScript 7.0 has no API. Microsoft expects a new, different API with TypeScript 7.1. Until then, both versions are meant to run side by side, so that tools like typescript-eslint, which access the compiler programmatically, keep working. That is what the @typescript/typescript6 package is for. It ships an executable named tsc6 and re-exports the TypeScript 6.0 API. Because tools like typescript-eslint import directly from typescript, Microsoft recommends npm aliases:
{
"devDependencies": {
"@typescript/native": "npm:typescript@^7.0.2",
"typescript": "npm:@typescript/typescript6@^6.0.2"
}
}
With that, npx tsc runs TypeScript 7.0, while other tools keep using the 6.0 API.
The situation is even clearer for embedded languages. According to Microsoft, workflows with Vue, MDX, Astro, Svelte and similar tools will likely not yet be able to use TypeScript 7, because tools such as Volar embed TypeScript into their own compilers and language services and need a stable API for that. These projects have to stay on TypeScript 6.0 for now. For Angular, Microsoft suggests a combination: TypeScript 7 for fast error detection with tsc on the command line and TypeScript 6.0 for editor support.
This affects me directly. I work a lot with TypeScript in Nuxt and Vue, plus Angular, React and StencilJS. For the Vue projects that means TypeScript 6.0 stays for now. For Angular, the combination can pay off for checks on the command line.
What does it mean for the editor?
The new language service is built on the Language Server Protocol and is meant to work in any modern editor. For VS Code there is a dedicated extension that becomes the default once installed and can be switched off and on again with the commands “Disable TypeScript 7 Language Server” and “Enable TypeScript 7 Language Server”. Support is meant to ship as part of VS Code itself in the coming weeks. According to Microsoft, Visual Studio enables TypeScript 7 automatically based on the workspace. Microsoft’s data shows over 80 percent fewer failing language server commands than with TypeScript 6.0, and server crashes dropped by over 60 percent.
How do I approach it?
- Move to TypeScript 6.0 first and fix all deprecations. Microsoft explicitly recommends this, because 7.0 no longer supports the options that 6.0 only tolerates with
ignoreDeprecations. - Turn on
stableTypeOrderingin 6.0. The flag aligns type ordering with 7.0 and makes differences between the two versions visible. - Check which tools need the TypeScript API: typescript-eslint, Vue, Astro, Svelte, Angular templates. TypeScript 6.0 stays for them, for typescript-eslint via
@typescript/typescript6. - Measure build times before and after and tune
--checkersto your CI runners, instead of adopting Microsoft’s factors. - For Vue, Astro and Svelte projects, wait for TypeScript 7.1 and the announced API.