TypeScript 7.0, the native Go port of the compiler, went stable on 8 July 2026, and you install it the normal way: npm install -D typescript now gives you a Go-based tsc. The migration path Microsoft recommends is to get your project compiling cleanly on TypeScript 6.0 without ignoreDeprecations, then switch to 7.0, because 7.0 turns every 6.0 deprecation into a hard error. The catch is tooling: 7.0 ships no programmatic API, so anything that imports the typescript package (typescript-eslint, Vue, Svelte, Astro and MDX tooling) needs a side-by-side 6.0 install until 7.1.

This guide covers what changed, a step-by-step upgrade, tsconfig before-and-after examples, and how to keep your linters and editor working during the transition. Everything here is sourced from the official TypeScript 7.0 announcement and the TypeScript 6.0 announcement.

The TypeScript 6.0 to 7.0 timeline

TypeScript 7 was developed under the codename Project Corsa and previewed for over a year as @typescript/native-preview with a tsgo binary. The 6.0 release was designed as a bridge: the last JavaScript-based compiler, with the defaults and deprecations that 7.0 enforces.

Milestone Date What it means for you
TypeScript 6.0 23 March 2026 New defaults, deprecations, --stableTypeOrdering flag for comparing with 7.0
TypeScript 7.0 Beta 21 April 2026 First beta of the Go-based compiler
TypeScript 7.0 RC 18 June 2026 Feature complete
TypeScript 7.0 8 July 2026 Stable; nightlies move back to typescript@next
TypeScript 7.1 Not yet released Planned home of the new programmatic API

The preview package @typescript/native-preview is no longer the way to get the native compiler. Use typescript (stable) or typescript@next (nightly).

How much faster is TypeScript 7?

Microsoft describes 7.0 as "a 10x faster native port." The announcement's own measurements of full builds with default settings put the range at 7.7x to 11.9x:

Codebase TypeScript 6.0 TypeScript 7.0 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

Source: TypeScript 7.0 announcement. The same post reports lower aggregate memory use on every measured project and editor improvements such as opening an erroring file in the VS Code repository dropping from about 17.5 seconds to under 1.3 seconds. Your numbers will depend on project size and how much of your build time is type checking versus bundling.

The speed comes from native code plus shared-memory parallelism. 7.0 exposes that through experimental flags:

  • --checkers <n>: number of type-checker workers (default 4). Microsoft notes that changing it can, in rare cases, change order-dependent results.
  • --builders <n>: parallel project-reference builds under --build.
  • --singleThreaded: disables parallelism, useful for debugging or constrained CI runners.

What changed: defaults from 6.0, removals in 7.0

Most of the breaking changes landed in 6.0 as new defaults and deprecations. 7.0 then removed the deprecated options entirely, so there is no ignoreDeprecations escape hatch anymore.

Defaults that changed in TypeScript 6.0 (and carry into 7.0)

Option Old default (5.x) New default Fix if it breaks you
strict false true Fix errors, or set "strict": false explicitly
module depended on target esnext Set module explicitly (nodenext for Node packages)
target es5 latest stable ES version Set target explicitly if you ship to older runtimes
types all of node_modules/@types [] List them: "types": ["node", "jest"], or ["*"] for old behavior
rootDir inferred from inputs directory of tsconfig.json Set "rootDir": "./src"
noUncheckedSideEffectImports false true Fix bad side-effect import paths
libReplacement true false Re-enable only if you use @typescript/lib-* packages

The two that catch the most projects are types and rootDir. With types: [], global declarations such as process, describe, or expect disappear until you list their packages. With the new rootDir, a project whose sources live in src/ will suddenly emit to dist/src/... instead of dist/... unless you set rootDir.

Options that are errors in TypeScript 7.0

These were deprecated in 6.0 and are now hard errors or no-ops:

  • target: es5 (the lowest target is ES2015) and --downlevelIteration
  • --moduleResolution node / node10 and classic
  • --module amd, umd, systemjs, and none
  • --baseUrl (rewrite paths relative to the project root)
  • esModuleInterop: false and allowSyntheticDefaultImports: false
  • alwaysStrict: false
  • --outFile (removed in 6.0)
  • The module keyword for namespaces (module Foo {} must be namespace Foo {})
  • asserts on imports (use with { type: "json" })
  • Passing file names on the command line while a tsconfig.json exists, unless you add --ignoreConfig

If you still need ES5 output or AMD/UMD bundles, that job now belongs to your bundler or a transpiler such as SWC or Babel, not tsc.

Behavior changes in type checking

  • Stable type ordering is always on. In 6.0, --stableTypeOrdering was an opt-in flag that made type ordering match 7.0. In 7.0 it cannot be disabled. It can change the order of union members in error messages and declaration output.
  • Template literal inference respects Unicode code points. A utility like HeadTail<"😀abc"> now yields ["😀", "abc"] instead of splitting the surrogate pair. Type-level string-length utilities that counted UTF-16 code units may produce different results.
  • JavaScript and JSDoc checking was reworked to match .ts semantics. Values can no longer be used as types (write typeof value), @enum is no longer special, a standalone ? is not a type, @class no longer turns a function into a constructor, and Closure-style function types are unsupported. If you type-check JavaScript with checkJs, expect new errors. The team tracks differences in CHANGES.md in the typescript-go repository.

Step-by-step: migrating a project to TypeScript 7

Step 1: Upgrade to TypeScript 6.0 and remove ignoreDeprecations

npm install -D typescript@6
npx tsc --noEmit

If you added "ignoreDeprecations": "6.0" to silence warnings, remove it and fix every deprecation it was hiding. Microsoft's compatibility promise is specific: code that compiles cleanly under 6.0 with stableTypeOrdering on and no ignoreDeprecations should compile identically under 7.0.

Step 2: Make the defaults explicit

A typical 5.x-era config that relied on old defaults:

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "es2017"],
    "downlevelIteration": true,
    "moduleResolution": "node",
    "baseUrl": ".",
    "paths": { "@/*": ["src/*"] },
    "outDir": "dist",
    "esModuleInterop": true
  },
  "include": ["src"]
}

The 7.0-ready version for a bundled web app:

{
  "compilerOptions": {
    "target": "es2022",
    "lib": ["dom", "es2022"],
    "module": "esnext",
    "moduleResolution": "bundler",
    "paths": { "@/*": ["./src/*"] },
    "rootDir": "./src",
    "outDir": "dist",
    "types": ["vite/client"],
    "strict": true,
    "noEmit": true
  },
  "include": ["src"]
}

Note that paths entries are now relative to the tsconfig.json (with ./) because baseUrl is gone. Since 6.0, "dom" also includes the iterable DOM typings, so dom.iterable is no longer needed.

For a Node.js library published to npm, use Node's module system rather than bundler:

{
  "compilerOptions": {
    "target": "es2023",
    "module": "nodenext",
    "rootDir": "./src",
    "outDir": "./dist",
    "declaration": true,
    "types": ["node"],
    "strict": true
  },
  "include": ["src"]
}

Step 3: Diff your output with stable type ordering

Before switching compilers, turn on --stableTypeOrdering in 6.0 and compare emitted declaration files. This isolates ordering differences from real regressions:

npx tsc -p tsconfig.json --declaration --emitDeclarationOnly --outDir /tmp/d6-plain
npx tsc -p tsconfig.json --declaration --emitDeclarationOnly --stableTypeOrdering --outDir /tmp/d6-stable
diff -r /tmp/d6-plain /tmp/d6-stable | head -50

The 6.0 announcement warns the flag can slow type checking by up to 25%, so use it for this comparison, not permanently.

Step 4: Install TypeScript 7.0

npm install -D typescript@7
npx tsc --noEmit

Run your full build and test suite. If CI runners are small, try --checkers 2 or --singleThreaded to compare memory pressure.

Step 5: Keep TypeScript 6.0 available for tools that need the API

TypeScript 7.0 does not include the JavaScript compiler API that tools have imported from typescript for a decade. Microsoft publishes a compatibility package, @typescript/typescript6, which provides a tsc6 executable and re-exports the 6.0 API. Because tools such as typescript-eslint resolve typescript through peer dependencies, the announcement recommends npm aliases so the name typescript points at 6.0 while you still get the 7.0 tsc:

{
  "devDependencies": {
    "typescript": "npm:@typescript/typescript6@^6.0.2",
    "@typescript/native": "npm:typescript@^7.0.2"
  },
  "scripts": {
    "typecheck": "tsc --noEmit",
    "typecheck:legacy": "tsc6 --noEmit"
  }
}

With this setup, tsc is the fast 7.0 compiler for builds and CI type checks, while linters and framework tooling import the 6.0 API under the familiar typescript name. Remove the aliases once your tools support the 7.1 API.

Tooling compatibility in late 2026

Tool or workflow Works with TypeScript 7.0? What to do
tsc CLI builds, --build, --watch Yes Use 7.0 directly
VS Code Yes, via extension Install "TypeScript 7" (TypeScriptTeam.native-preview); built-in support was announced as coming
Visual Studio Yes Latest version enables it automatically
Other LSP editors (WebStorm, Neovim, Zed) Language server speaks LSP Check your editor's TypeScript 7 support
typescript-eslint and other API consumers No (needs API) Keep 6.0 under the typescript alias
Vue, Svelte, Astro, MDX language tooling No (needs API) Stay on 6.0 in the editor for now
Angular Partially Use 7.0 for tsc CLI checks, 6.0 for the editor and template checking
Custom transformers and compiler plugins No They depend on the 6.x API; keep them on 6.0
Bundlers that strip types (Vite, esbuild, SWC, Bun) Unaffected They never used tsc to transpile

If a VS Code workspace misbehaves, the command palette has "Disable TypeScript 7 Language Server" to fall back to 6.0 without uninstalling anything.

Most modern frontend stacks already separate transpilation from type checking: the bundler strips types and tsc --noEmit checks them. That split is why the upgrade is cheap for them. If you are evaluating the rest of the toolchain at the same time, our comparisons of Biome vs ESLint and Bun vs Node.js cover linters and runtimes that do not depend on the TypeScript API at all.

Watch mode and monorepos

--watch was rebuilt on a Go port of Parcel's @parcel/watcher, replacing polling that the team says became too expensive with large node_modules folders. In monorepos using project references, tsc --build combined with --builders can build independent projects in parallel:

npx tsc --build tsconfig.json --builders 4 --checkers 2

Start conservatively: --builders multiplied by --checkers is roughly how many workers you are asking for, and CI runners with two vCPUs will not benefit from 16.

Common migration errors and fixes

"Cannot find name 'process'" or "Cannot find name 'describe'". The types default is now []. Add "types": ["node"] or the relevant test framework types.

Output lands in dist/src/ instead of dist/. Set "rootDir": "./src".

"Option 'baseUrl' is removed". Delete baseUrl and prefix paths targets with ./.

"Option 'moduleResolution=node10' is removed". Use bundler for apps compiled by a bundler, nodenext for code executed by Node directly.

typescript-eslint crashes or reports a missing API. It is importing 7.0 under the typescript name. Apply the alias setup from Step 5.

New errors in .js files under checkJs. These come from the JSDoc rework. Replace value-as-type references with typeof, convert @enum objects to a @typedef over (typeof X)[keyof typeof X], and replace @class functions with class declarations.

Runtime validation libraries are unaffected by the compiler change, but their inferred types benefit from faster checking; see our Zod vs Valibot comparison if you are choosing one.

Frequently Asked Questions

Is TypeScript 7 released?

Yes. TypeScript 7.0 was announced as stable on 8 July 2026 on the TypeScript blog. Install it with npm install -D typescript; nightly builds are available as typescript@next.

Is tsgo still the command for TypeScript 7?

tsgo was the binary name of the @typescript/native-preview package during the preview period. With the stable release, the Go compiler ships in the regular typescript package as tsc. If you need the old compiler alongside it, the @typescript/typescript6 package provides tsc6.

Do I have to upgrade to TypeScript 6.0 before 7.0?

You do not strictly have to, but it is the recommended path. TypeScript 6.0 reports every option that 7.0 removes as a deprecation, so fixing your project on 6.0 without ignoreDeprecations tells you exactly what will break. Microsoft states that code compiling cleanly that way should compile identically under 7.0.

Does TypeScript 7 support compiler plugins and custom transformers?

Not through the old API. TypeScript 7.0 does not ship a programmatic API, and Microsoft has said a new, different API is planned for 7.1. Tools that use the 6.x compiler API, including custom transformers, should keep running against TypeScript 6.0 via the @typescript/typescript6 package.

Will TypeScript 7 change the JavaScript my build produces?

For most projects, no. If your bundler (Vite, esbuild, SWC, Bun) strips types, tsc only type-checks and emits nothing. If tsc does emit, output for a project that was clean on 6.0 should be identical, but declaration files may order union members differently because stable type ordering is always on.

Can I still compile to ES5 with TypeScript 7?

No. target: es5 was deprecated in 6.0 and is an error in 7.0; the lowest supported target is ES2015. If you must support ES5 runtimes, compile with TypeScript to a modern target and let Babel or SWC down-level the output.

Conclusion

TypeScript 7.0 is the biggest change to the compiler since the language launched, but for most application code the migration is a configuration exercise. Get clean on 6.0, make rootDir, types, module, and target explicit, replace baseUrl and node10 resolution, then install 7.0. The real constraint is the missing API: keep @typescript/typescript6 aliased as typescript until typescript-eslint and your framework's language tooling move to 7.1. Do that and you get roughly an order-of-magnitude faster type check on the same code. For quick JSON and code utilities while you edit configs, try the free developer tools on Butlermind Hub.