
"Also featured in TypeScript 6.0 is support for the es2025 option for both target and lib, less context sensitivity on this-less functions, and new types for Temporal, which provide standard objects and functions for working with dates and times. With the --stableTypeOrdering flag, the type ordering behavior of TypeScript 6.0 matches that of TypeScript 7.0, reducing the number of differences between the two codebases."
"With TypeScript 6.0's es2025, option, the new target adds new types for built-in APIs (e.g. RegExp.escape) and moves a few declarations from esnext into es2025. With this-less functions, if this is never actually used in a function, then it is not considered contextually sensitive. That means these functions will be seen as higher priority when it comes to type inference."
TypeScript 6.0 adds support for an es2025 target and lib, introducing new built-in API types like RegExp.escape and migrating some declarations from esnext. Functions that never use this are no longer treated as contextually sensitive, which raises their priority in type inference. Built-in types for the ECMAScript Temporal proposal (Stage 3) are included so developers can use the Temporal API via --target esnext, "lib": ["esnext"], or the granular temporal.esnext. The --stableTypeOrdering flag aligns TypeScript 6.0 type ordering with TypeScript 7.0 but can slow type checking by up to 25% and should be used judiciously.
Read at InfoWorld
Unable to calculate read time
Collection
[
|
...
]