TypeScript 7 is the version where the compiler stops being a JavaScript program. Microsoft ported it to Go, and the reported result is full builds roughly 8 to 12 times faster. For a large codebase, that can turn a type-check measured in minutes into one measured in seconds.

The speed is the easy part to like. The migration is where teams get stuck, because TypeScript 7 removes options that TypeScript 6 only deprecated, changes several defaults, and does not yet offer the stable programmatic API that some tools depend on. This guide covers what changes, what breaks, and how to roll it out in stages.

Verification note. I could not open Microsoft’s own 7.0 announcement while preparing this article, so the details below come from the TypeScript 6.0 release notes and several secondary write-ups, which disagree on a few points. I have marked those. Before you migrate, check the official TypeScript blog for current install commands and compatibility. The configuration snippets are illustrative and I have not run them against your project.

What changed in TypeScript 7

TypeScript 7.0 reached stable in July 2026 (sources give July 8 and July 10, so treat the exact day as unconfirmed). The core points:

  • A native compiler written in Go. It aims to keep the existing type-checking behavior while using native code and parallelism.
  • Reported speedups of about 8x to 12x on full builds. These are vendor and press figures from specific projects. Your result depends on project size and hardware, so measure it.
  • A rebuilt watch mode and Language Server Protocol support for editors, plus a dedicated VS Code extension.
  • Distribution through the standard typescript npm package. Earlier previews used @typescript/native-preview and a tsgo binary, so older tutorials may show outdated commands.

Why the speed matters

Slow type-checking is a tax on every part of the workflow: editor feedback, pre-commit hooks, CI minutes, and the temptation to skip checks. A compiler that is an order of magnitude faster changes what is practical. Full monorepo type-checks in CI become cheap, and tsc --noEmit stops being the step everyone wants to cache around.

It does not change runtime performance. Your compiled JavaScript runs the same way. This is a developer-experience and CI-cost upgrade, not an application speedup.

Step 1: clear deprecations on TypeScript 6 first

TypeScript 6.0 deprecated a set of options and allowed them to keep working with "ignoreDeprecations": "6.0". According to the 6.0 release notes, they are removed entirely in 7.0. At least one source reports that 7.0 rejects them even with ignoreDeprecations set, so do not plan to silence the warnings and carry on.

The options commonly reported as failing:

Removed or changed What to do
target: "es5" Move to a modern target such as ES2022 or later
downlevelIteration Remove it; it only mattered for ES5 output
baseUrl Remove it and make paths entries relative to the tsconfig.json directory
moduleResolution: "node10" or "classic" Use bundler (for apps with a bundler) or nodenext (for Node.js)
module: "amd", "umd", "systemjs" Use esnext, nodenext, or another supported format
esModuleInterop: false Remove it and use the default
assert in import attributes Replace assert { type: "json" } with with { type: "json" }

Do this on TypeScript 6 and get a clean run with no ignoreDeprecations. It is a normal, reviewable change, and your tests tell you whether it was safe.

A typical baseUrl fix looks like this:

// Before
{
  "compilerOptions": {
    "baseUrl": "src",
    "paths": { "@/*": ["*"] }
  }
}

// After
{
  "compilerOptions": {
    "paths": { "@/*": ["./src/*"] }
  }
}

Step 2: prepare for the new defaults

Several defaults change, so a config that was fine before can behave differently. The ones reported most often:

  • strict is on by default. If you relied on it being off, either fix the errors or set "strict": false explicitly as a stopgap.
  • types defaults to an empty array. Nothing under node_modules/@types loads automatically. This is the cause of errors like Cannot find name 'process'. List what you need:
{
  "compilerOptions": {
    "types": ["node"]
  }
}
  • rootDir defaults to the tsconfig.json directory. If your output layout depended on the inferred root, set rootDir explicitly.
  • tsc file.ts in a folder with a tsconfig.json is now an error (TS5112) instead of silently ignoring the config. Use --ignoreConfig if you really want that.

The safest approach is to make each default explicit in your config while still on TypeScript 6. Then the upgrade changes the compiler and nothing else.

Step 3: check your tooling

This is the step most likely to hold you back. TypeScript 7 does not yet expose a stable programmatic API, which Microsoft is reported to expect in a later 7.x release. Anything that imports the typescript package as a library is affected:

  • typescript-eslint has been reported to refuse installation next to typescript@7 because its peer dependency range stops below the new version, which shows up as an ERESOLVE error in npm.
  • Framework language tooling for Vue, Astro, Svelte, MDX and Angular templates is reported to keep using TypeScript 6 until the API arrives.
  • Jest transforms such as ts-jest use the compiler API and may need the same treatment. Check their release notes.

Microsoft published a compatibility package, @typescript/typescript6, which provides a tsc6 binary and the 6.0 API. That lets two versions coexist: TypeScript 7 for fast command-line checking, TypeScript 6 for the tools that need a library.

I run into this directly on this site, which is built with Astro. astro check relies on tooling that is reported to stay on TypeScript 6 for now, so the practical choice is to keep that check on 6 and wait.

Step 4: roll out in stages

You do not need to switch everything at once. A low-risk order:

  1. Fix deprecations on TypeScript 6 and merge. Nothing else changes.
  2. Add TypeScript 7 as a second, non-blocking CI job that runs tsc --noEmit. Compare its output with the existing job. Any difference is a bug in your config or a compiler difference worth reporting.
  3. Measure. Record wall-clock time for the old and new type-check in CI and locally. This gives you a real number instead of a press figure.
  4. Make the new job blocking once the results match for a couple of weeks.
  5. Move editors and scripts over, and keep TypeScript 6 only for the tools that require it.

Because the type-check job is separate from the build, a bundler such as Vite, esbuild, or Next.js’s own compiler is unaffected. They strip types without using tsc to emit.

A minimal package setup

The exact aliasing varies by package manager and release, so treat this as a shape rather than a recipe:

{
  "devDependencies": {
    "typescript": "^7.0.0",
    "@typescript/typescript6": "^6.0.0"
  },
  "scripts": {
    "typecheck": "tsc --noEmit",
    "typecheck:legacy": "tsc6 --noEmit"
  }
}

The typecheck:legacy script lets you compare the two compilers while you transition. Confirm the package names and version ranges on npm before you copy this.

Common mistakes

  • Leaving ignoreDeprecations in place and assuming the upgrade will pass.
  • Upgrading everything in one PR. When it fails, you cannot tell whether the cause is config, defaults, or tooling.
  • Forgetting types. The most common first error, and it looks alarming but takes a minute to fix.
  • Reading speedup claims as a guarantee. Benchmarks come from specific codebases. Time your own.
  • Expecting runtime gains. The emitted JavaScript is not faster.

When to wait

Staying on TypeScript 6 for a while is a reasonable choice if:

  • A tool you depend on needs the compiler API and has no TypeScript 7 support yet.
  • Your build leans heavily on custom compiler plugins or transformers.
  • You are partway through a release and a toolchain change adds risk.

TypeScript 6 is not going away overnight, and the fast path is already available to you through a second, non-blocking CI job.

Conclusion

TypeScript 7 is worth adopting for the CI and editor speed alone, but the work is mostly housekeeping. Clear the deprecations on TypeScript 6, make the new defaults explicit, keep TypeScript 6 around for tools that need the API, and add the new compiler as a parallel check before you make it the gate. Measure the result on your own code.

Frequently asked questions

Does TypeScript 7 make my application run faster?

No. It speeds up type-checking, builds that call tsc, and editor responsiveness. The JavaScript it emits is equivalent.

Do I need to rewrite my TypeScript code?

Usually not. Most changes are in tsconfig.json, plus the assert to with import attribute rename. The type system is intended to behave the same.

Can I run TypeScript 6 and 7 side by side?

Yes. Microsoft’s @typescript/typescript6 compatibility package provides a tsc6 binary for that purpose. Verify the current package details before relying on it.

Will ESLint and my framework tooling work?

Not necessarily yet. typescript-eslint and the language tooling for Vue, Astro, Svelte and Angular are reported to need TypeScript 6 until a stable API ships. Check each project’s release notes.

References and further reading

A compiler upgrade is a good moment to check what else the codebase is carrying, and API versioning is the other contract that tends to break at the same time. I do this kind of upgrade as part of Node.js and TypeScript development, usually alongside the full-stack work it unblocks. If your migration has stalled, tell me where.