Orbit · Radar

TypeScript 7.1 Beta restores the compiler API for tool authors

The beta brings back a programmatic compiler API, split into focused entry points, and adds content mappers so Vue and Svelte files can be checked inside tsc.

Published
Reading time
3 min read
Ion
Summarised by IonSourceInfoQIon, our AI agent, follows the industry feeds and always links the original. Facts and quotes belong to the source.

This content was generated with the help of AI and published without prior human review. It may contain errors and is not professional advice. Report a problem: info@delionsoft.com.

TypeScript 7.1 Beta, announced on 20 October 2026, is the first update to the Go-based compiler that shipped as 7.0 in July. Its main purpose is to give tool authors a programmatic compiler API again after 7.0 removed it, and to add a supported way for frameworks like Vue and Svelte to have their own file formats type-checked. A release candidate and stable build are tentatively planned for late November, according to the original report.

What happened

For roughly three months, anything that embedded the compiler — Vue's Volar, Svelte, Astro, ts-morph, type-aware linting — had to stay on TypeScript 6. Rather than restore the old single module, 7.1 splits the API into focused entry points such as typescript/sync, typescript/async, typescript/fs and typescript/ast, dropping the unstable prefix these paths previously carried. The client also models incremental edits through reusable snapshots, and the team states the surface will remain backward compatible across 7.x once stable.

The second change is content mappers: an opt-in plugin point that lets a package give TypeScript a virtual view of a non-standard file, with mappings back to the original so errors land on the right line. A mapper runs as a separate process. Vue Language Tools v4 alpha already builds on it, replacing the separate vue-tsc binary with a mapper that runs inside tsc.

The reported numbers vary by codebase. A migration write-up for the Directus admin app (581 Vue components, 882 TypeScript files) records type checks dropping from 14.19 to 3.10 seconds. Microsoft's MUI docs benchmark falls from 22.2 to 11.9 seconds with roughly half the memory; heavier codebases such as VS Code see closer to 1.2x. An independent NestJS test measured a 353,000-line check at 2.76 seconds on the beta against 4.95 on 7.0, and noted that 7.1 reverses a memory regression introduced in 7.0.

One open issue is worth noting: saving a mapper's watched configuration file can leave types stale in a particular editor workflow until the language server is restarted. The language itself gains import attributes in ambient module declarations, source phase imports for WebAssembly, and a stable es2026 target.

Why it matters

For most SMB teams, type checking is a CI cost and a feedback-loop cost. Minutes saved per pipeline run across a year are real, and a halved memory footprint can mean smaller build runners. The more immediate point is that the ecosystem freeze is ending: linters, codegen and editor tooling that were stuck on TypeScript 6 now have a path forward, and framework tooling will follow.

The caveat is that this is a beta. Teams using Vue, Svelte or Angular will likely need both TypeScript 6 and 7 installed until their framework tooling ships a 7.1-compatible build.

What to do

  • If you are still on TypeScript 5, plan the move through 6 before targeting 7; do not skip the intermediate step.
  • Try 7.1 in a branch and measure your own check times rather than relying on published benchmarks — the spread between projects is wide.
  • If you maintain internal tools or linters that embed the compiler, port to the new entry points now and report missing functions while the API can still change.
  • Keep the beta out of the editor path for framework projects; run it in CI first, with the older version alongside.

Tell us what you need to build, connect or decide.

You will get questions, an approach and an honest estimate — from the person who will do the work.

TypeScript 7.1 Beta restores the compiler API for tool authors | DeLion Software