typescript-7
TypeScript 7
Use stable TypeScript 7 for new tsc and LSP-based projects. Microsoft's 7.0 release announcement documents this Go-native port, its typical 8-12x full-build speedup, and the absence of a stable 7.0 programmatic API. Treat CLI/LSP adoption separately from tools that import typescript.
Quick Reference
| Need | Action |
|---|---|
| Install stable 7.x | pnpm add -D typescript@^7 @types/node |
| Confirm the compiler | pnpm exec tsc --version |
| Keep the TypeScript 6 API | Use the @typescript/typescript6 compatibility package side-by-side |
Stable releases use the ordinary typescript package and tsc. Do not prescribe the preview-only @typescript/native-preview package or tsgo command.
Choose 7 or 6
Use 7 for new .ts projects. Verify explicit 7.x support before switching a Compiler API consumer, custom transformer, legacy tsserver plugin, or embedded-language stack such as Vue, MDX, Astro, Svelte, or Angular template checking. A project can run TypeScript 7 CLI checks while API-dependent tools use TypeScript 6 side-by-side.