Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

How to Upgrade to TypeScript 7: The Native Compiler, What Breaks, and the Safe Path (2026)

What TypeScript 7 actually is

TypeScript 7 is the biggest change to the language’s tooling since TypeScript itself shipped: the compiler has been ported to Go and now runs as a native binary, and Microsoft’s own benchmarks put it at 8–12x faster than TypeScript 6 on full builds. If you write TypeScript every day — in React, Next.js, Node, or plain libraries — this is the upgrade that finally makes your type-checker disappear.

But there is a catch, and it is a real one. TypeScript 7.0 ships without a programmatic API, turns every TypeScript 6 deprecation into a hard error, and changes defaults that will break real configs. This guide walks you through the upgrade in the safe order — 6.0 first, fix what it warns about, then switch to 7 — with the side-by-side setup that keeps typescript-eslint working until TypeScript 7.1 lands. Every fact below is verified against Microsoft’s official announcements, checked on 24 November 2026.

The important thing to understand first: this is a port, not a rewrite. Microsoft spent over a year moving the existing compiler codebase to Go (the effort was codenamed “Project Corsa”) while deliberately keeping the structure and logic of the original code so results stay consistent with TypeScript 6. The type system is identical; what changed is the execution — native code speed plus shared-memory multithreading across parsing, type-checking, and emit.

TypeScript 6.0, released 23 March 2026, was the last version built on the original JavaScript codebase. TypeScript 7.0 went generally available on 8 July 2026 and has been the latest version on npm since then — a plain npm install -D typescript gets you the native compiler today, and tsc is still the same command.

How much faster is TypeScript 7, really?

Microsoft’s headline numbers come from full builds of large open-source codebases, run on the same machine with the default of four type-checker workers. They are vendor figures — the announcement does not list the hardware — so read them as the shape of the gain, not a promise for your laptop:

Codebase TypeScript 6 TypeScript 7 Speedup
vscode 125.7s 10.6s 11.9x
sentry 139.8s 15.7s 8.9x
bluesky 24.3s 2.8s 8.7x
playwright 12.8s 1.47s 8.7x
tldraw 11.2s 1.46s 7.7x

It also uses less memory while doing it: the VS Code build dropped from 5.2 GB to 4.2 GB (-18%), Bluesky from 1.8 GB to 1.3 GB (-26%), and the other three codebases fell between 6% and 15%. And the win is not limited to full builds. Opening a file with an error in the VS Code codebase used to take about 17.5 seconds from opening the editor to seeing the first error; with TypeScript 7 it is under 1.3 seconds. Microsoft reports the new language server cut failing language server commands by over 80% and server crashes by over 60% compared with TypeScript 6.

Teams running it at scale report the same story. Slack says TypeScript 7 eliminated 40% of its merge queue time and cut CI type-checking from about 7.5 minutes to 1.25 minutes. Canva went from about 58 seconds to seeing the first error in the editor to about 4.8 seconds. Vanta reports up to 9x faster builds on its biggest project, and Microsoft’s own News Services team says it saved them 400 hours a month waiting for CI builds.

Independent testing points the same way, on a smaller scale: one migration guide timed the Hono codebase (189 files, about 26,000 lines) at a median 0.58 seconds with TypeScript 7.0.2 against 3.01 seconds with TypeScript 6.0.3. Your numbers will vary with project size and core count, but the direction is consistent.

You can tune the parallelism. TypeScript 7 runs four type-checker workers by default, configurable with the experimental --checkers flag — with eight checkers, the VS Code build in Microsoft’s table drops further to 7.51 seconds (16.7x). There is also --builders for parallel project-reference builds and --singleThreaded to turn parallelization off entirely, which is useful for debugging or for small CI runners where extra workers are pure overhead. On a small runner, lower the checker count rather than letting it default.

Upgrade in the safe order

Do not jump straight from TypeScript 5.x to 7. Microsoft’s own compatibility promise is narrow: code that compiles cleanly with TypeScript 6.0 (with the stableTypeOrdering flag on, and without any ignoreDeprecations flag set) should compile identically in TypeScript 7.0. That sentence is your migration plan.

Step 1: Get to TypeScript 6.0 first

npm install -D typescript@^6.0

Run your full type-check and fix what it reports. Version 6.0 is the bridge release: it introduced the new defaults and the deprecation warnings that 7.0 turns into errors. Turn on --stableTypeOrdering while you are here — it makes 6.0’s output ordering match 7.0’s, so comparing the two compilers later is not drowned in noise. Treat it as a diagnostic step, not a permanent setting.

Step 2: Fix every deprecation, and remove ignoreDeprecations

If your config sets ignoreDeprecations to silence warnings, remove it. In 7.0 those deprecations are hard errors and the flag no longer saves you. Work through the list in the next two sections until npx tsc --noEmit is clean on 6.0.

Step 3: Install TypeScript 7

npm install -D typescript
npx tsc --version

That is the whole install — the typescript package on npm is now the native compiler, and tsc is the native binary. Run the full check again, then your test suite. If the output differs from 6.0, pin the checker count (--checkers 4) so every environment agrees, since varying the number of checkers can rarely surface order-dependent results.

Step 4: Update your editor

Install the dedicated TypeScript 7 extension for VS Code, or update VS Code — built-in support shipped after the July release. Visual Studio enables TypeScript 7 automatically based on your workspace. The new language server is built on the Language Server Protocol and is multithreaded, so other editors should pick it up through their LSP support.

What breaks: the new defaults

TypeScript 7.0 adopts TypeScript 6.0’s new defaults wholesale. Most of them you will never notice. Two of them will bite real projects: rootDir and types.

Option Old default New default
strict false true
module commonjs esnext
target ES3/ES5 era Current stable ECMAScript version before esnext
types All @types packages loaded [] (none)
rootDir Inferred common root ./ (the tsconfig directory)
noUncheckedSideEffectImports false true
libReplacement true false
stableTypeOrdering false true (cannot be turned off)

The types change is the one that produces the most confusing first error. TypeScript used to load every @types/* package in node_modules automatically. Now it loads none unless you list them, so a project with @types/node installed suddenly reports Cannot find name 'process'. The fix is explicit:

{
  "compilerOptions": {
    "types": ["node", "jest"]
  }
}

If you genuinely want the old behaviour back, set "types": ["*"].

The rootDir change shifts your emit output. If your tsconfig.json sits at the project root and your code lives in src, the old inferred root kept the output as dist/server.js; the new default emits dist/src/server.js instead, and your start script breaks. Set it explicitly:

{
  "compilerOptions": {
    "rootDir": "./src"
  },
  "include": ["./src"]
}

The strict change is the one that surfaces the most errors in loosely typed code. Do not turn it off to make the upgrade pass — fix the errors. Strict mode has been the recommended setting for years; 7.0 just stops pretending otherwise.

The hard errors: what 6.0 deprecated, 7.0 deletes

Everything below was a deprecation warning in TypeScript 6.0. In 7.0 it stops the build:

  • target: es5 — ES5 output is no longer supported at all.
  • downlevelIteration — removed.
  • moduleResolution: node, node10, and classic — use nodenext for libraries or bundler for apps.
  • module: amd, umd, systemjs, none — use esnext or preserve.
  • baseUrl — removed; make paths relative to the project root instead.
  • esModuleInterop: false and allowSyntheticDefaultImports: false — both are now always on.
  • alwaysStrict: false — strict mode is assumed.
  • The module keyword in namespace declarations — use namespace.
  • Import asserts — use the with keyword, to align with ECMAScript’s import attribute syntax.
  • /// <reference no-default-lib /> directives under skipDefaultLibCheck — no longer respected.
  • Passing file paths on the command line when a tsconfig.json is present — use the explicit --ignoreConfig flag.

Two smaller behaviour changes are worth knowing about. Template literal types now preserve Unicode code points instead of splitting surrogate pairs — Head<"😀abc"> infers ["😀", "abc"] where it used to produce a broken surrogate half. And JavaScript support was reworked to match TypeScript analysis more closely: values can no longer be used where types are expected in JSDoc (write typeof someValue), @enum is no longer specially recognised, a standalone ? is no longer usable as a type, and Closure-style function syntax is gone.

The catch: TypeScript 7.0 has no API

This is the one reason a team should pause. TypeScript 7.0 ships no programmatic compiler API, so anything that imports typescript as a library cannot run on it: typescript-eslint (including its type-aware rules), vue-tsc and other Volar-based tools, ts-jest, ts-node, ts-patch transformers, and your own scripts that call ts.createProgram.

As of early November 2026, typescript-eslint still does not support TypeScript 7 — its peer range stops below 6.1 — and the path forward is a draft pull request adding a native backend. That will change; until it does, the official answer is to run both compilers side by side. Microsoft publishes a compatibility package, @typescript/typescript6, which re-exports the 6.0 API and installs a tsc6 binary, so tsc can be 7.0 while your tooling keeps using 6.0. The recommended setup uses npm aliases:

{
  "devDependencies": {
    "@typescript/native": "npm:typescript@^7.0.2",
    "typescript": "npm:@typescript/typescript6@^6.0.2"
  }
}

With that in place, npx tsc runs the fast native compiler and anything importing typescript — typescript-eslint included — gets 6.0. When 7.1 ships its new API, you remove the alias and go all-in on 7.

Some projects simply cannot move yet, and the announcement says so plainly. Vue, MDX, Astro, and Svelte workflows need to stay on TypeScript 6.0 for now, because their tooling embeds the compiler. Angular teams get a middle path: use TypeScript 7’s tsc at the command line for fast project-wide error detection, and keep TypeScript 6.0 in the editor for template type-checking. In VS Code you can flip back with the “Disable TypeScript 7 Language Server” command.

Editor setup: what changes in VS Code

The editor experience is where the speed is most visible day to day — first errors in seconds instead of tens of seconds, and a language server that stops falling over on large codebases. Install the dedicated TypeScript 7 extension from the VS Code marketplace and it becomes the default experience; you can disable and re-enable it any time from the command palette. The new server is built on the Language Server Protocol with multiple threads serving simultaneous requests, and the --watch mode was rebuilt on a port of Parcel’s @parcel/watcher to Go, which the team says is noticeably more stable across platforms than the old polling-based watcher.

Features that were missing from the 7.0 beta — semantic highlighting, “sort imports”, “remove unused imports” — are all in the stable release, along with auto-imports, expandable hovers, inlay hints, code lenses, and go-to-source-definition.

TypeScript 7.1 beta: the release that unblocks everyone

If the missing API is what is holding you back, the next release is the one to watch. TypeScript 7.1 Beta shipped on 20 October 2026, installable with npm install -D typescript@beta. Its headline change is the return of the programmatic API — not the old monolithic ts object, but six focused entry points:

Entry point What it gives you
typescript/sync Synchronous compiler client: options, type-checker, and program APIs
typescript/async Promise-based equivalent of the sync client
typescript/fs Request-scoped full and layered filesystems
typescript/ast AST node types and enums such as SyntaxKind
typescript/ast/is Node type guards
typescript/ast/factory create* and immutable update* functions

Two design details matter if you write tools against it. API, Program, and Snapshot objects are Disposable — you dispose of them explicitly or declare them with the using keyword, because the garbage collector cannot reclaim the bookkeeping on the Go side. And the API does not discover tsconfig.json or support --project; you pass filenames and compiler options explicitly. Snapshots model a program at a point in time and can be cheaply updated when files change, which is how editors and watch-mode tools avoid rebuilding the world on every keystroke.

The second big piece is content mappers, the plugin point that finally brings .vue, .svelte, Astro, MDX, Ember, and CSS Modules files inside tsc itself. A mapper is registered per file extension in tsconfig.json and produces a virtual TypeScript view of the file, with regions mapped back to the original so errors point at the right line. On the command line it needs the --runExternalCode flag, since mappers are arbitrary executables; in VS Code it needs workspace trust and content mapper permissions. Vue’s language tools are already porting to it, and the @vue/content-mapper package is expected to replace the separate vue-tsc binary — though it was not on npm yet when the beta shipped.

The beta also makes es2026 a stable --target and --lib, adds import attributes in ambient module declarations (declare module "*" with { type: "css" }), and adds source phase imports — import source — which return an inert module object you can hand to WebAssembly.instantiate. And it is faster again: against TypeScript 7.0, the beta cut type-checking time by up to 46.6% (mui-docs, 22.2s to 11.9s) and memory by up to 49.6% on Microsoft’s benchmarks.

One timing note, checked today: the iteration plan targeted a release candidate for 10 November and a stable release for 24 November 2026, but as of today no release candidate has appeared on npm — the beta tag still points at 7.1.0-beta. Treat the stable date as slipped, and test the beta now while there is still time to report what breaks. Two changes in the beta can also add errors to your build: DOM lib.d.ts updates, and stricter checks on distributive type parameters, where a distributed type parameter no longer satisfies constraints written against the original union.

Should you upgrade now?

Your project Verdict
Plain TypeScript, React, Next.js, or Node app, already clean on 6.0 Upgrade now. The speed is real and the risk is low.
Heavy typescript-eslint type-aware linting Upgrade with the side-by-side alias, or wait for 7.1.
Vue, Svelte, Astro, or MDX Stay on 6.0 until 7.1 and your framework’s tooling catches up.
Angular Use 7.0’s tsc in CI, keep 6.0 in the editor.
Still on TypeScript 5.x Go to 6.0 first. Skipping the bridge release means taking both sets of breaking changes at once.

TypeScript 7 is not a new language — it is the same compiler, running natively. That is exactly why the upgrade is worth doing: the cost is a config cleanup you should have done in 6.0 anyway, and the payoff is a type-checker that stops being the slowest part of your day. Do the 6.0 step properly, keep 6.0 alongside 7.0 for your linting, and let 7.1 close the API gap.

Further Reading & References

Verified against Microsoft’s official TypeScript 7.0 and 7.1 Beta announcements on 24 November 2026. Benchmark figures are Microsoft’s own, measured on their hardware; your results will vary.

Leave a Comment