TypeScript 7 Beta и tsgo: быстрый компилятор требует плана миграции
Выигрыш важен для CI и редактора, но риски остаются в JSDoc, declaration emit, watch mode, LSP и инструментах, которые используют compiler API.
What happened
Microsoft announced TypeScript 7.0 Beta on April 21, 2026. The beta is available as @typescript/native-preview@beta and runs through tsgo, so teams can compare it with TypeScript 6 tsc before changing their default toolchain.
Why it matters
TypeScript 7.0 Beta предлагает нативный компилятор на Go. Командам стоит проверять tsgo параллельно с tsc, а не менять default сразу. This is especially relevant for large TypeScript codebases, monorepos, and teams where type-checking latency affects pull-request flow and editor responsiveness.
Практический чеклист
Зафиксируйте baseline tsc, добавьте tsgo как non-blocking job, сравните диагностику и .d.ts, протестируйте VS Code preview на малой группе и задайте критерии перехода.
Risks
The official repository still marks the programmatic API as not ready, watch mode as prototype, and LSP work as in progress. Teams with legacy JavaScript, CommonJS, Closure-style JSDoc, or compiler-API tooling should validate those areas separately.