7 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
TypeScript 6.0 is now in beta, marking the last release based on the current JavaScript codebase before transitioning to a new Go-based compiler for future versions. It introduces several new features, including improved type inference for functions and support for subpath imports. Developers can prepare for TypeScript 7.0 with the changes outlined in this release.
If you do, here's more
TypeScript 6.0 has entered beta, marking a significant point as it will be the last release based on the current JavaScript codebase. The team is transitioning to a new codebase written in Go, which will enhance performance through native code and multi-threading. This shift lays the groundwork for TypeScript 7.0. The current release mainly focuses on aligning with this future version while introducing some key new features.
One notable change is reduced context-sensitivity for functions. Previously, functions without explicit parameter types could complicate type inference, especially with method syntax. TypeScript 6.0 improves this by allowing inference even when `this` is not actively used in the function. This adjustment ensures that functions are prioritized correctly in type inference scenarios, simplifying the development process.
Another update involves subpath imports, now allowing modules to start with a `#/` prefix rather than being forced to include an additional segment after `#`. This aligns TypeScript with recent Node.js changes and should reduce confusion when using subpath imports. Additionally, the `--moduleResolution bundler` setting can now be used with `--module commonjs`, expanding its applicability for various projects. Lastly, a new flag, `--stableTypeOrdering`, aims to assist developers in migrating from 6.0 to 7.0 by improving how TypeScript assigns and sorts type IDs.
Questions about this article
No questions yet.