𝗧𝘆𝗽𝗲𝗦𝗰𝗿𝗶𝗽𝘁 𝟳.𝟬 𝗕𝗲𝘁𝗮 𝗜𝘀 𝗛𝗲𝗿𝗲
TypeScript 7.0 Beta is out. The compiler uses Go now. It is 10x faster. I tested it on a real codebase. It is fast.
Why Go? It was faster to port than Rust. It matches the old structure. The port took one year. It has the same logic as version 6.0.
Install it now:
- npm install -D @typescript/native-preview@beta
- Run npx tsgo --version
Go allows parallel work. Use these flags:
- --checkers: sets type-checking workers.
- --builders: sets project reference builds.
- --singleThreaded: for debugging.
Some defaults changed:
- strict: now true.
- module: now esnext.
- types: now an empty list. List your @types packages explicitly.
These are gone:
- target: es5
- moduleResolution: node
- baseUrl
- downlevelIteration
JSDoc changed:
- No more @enum. Use @typedef.
- No more Closure-style functions.
Wait for 7.1 if you need the programmatic API.
The Go port is a smart move. It works on huge codebases. Clean your config. Try it today.