TypeScript 7 Beta และ tsgo: คอมไพเลอร์ที่เร็วขึ้นต้องมีแผนย้ายระบบ
ความเร็วช่วย CI และ editor ได้มาก แต่ความเสี่ยงอยู่ที่ JSDoc เดิม, watch mode, LSP, declaration emit และเครื่องมือภายในที่พึ่ง TypeScript 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 เปิดตัวคอมไพเลอร์ native บน Go ทีมควรตรวจสอบ tsgo คู่กับ tsc ก่อนเปลี่ยนค่าเริ่มต้น 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 เป็น CI job ที่ยังไม่บล็อก, เทียบ diagnostics และ .d.ts, ทดลอง VS Code preview แบบจำกัด และกำหนดเกณฑ์ rollout
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.