Closed
Description
https://devblogs.microsoft.com/typescript/announcing-typescript-5-2-rc/
This issue is just to track all of the new features and their implementation state in this project.
As with all releases, we will not necessarily to support all features until closer to the full release when everything the features are stabilised.
Please be patient.
✅ using Declarations and Explicit Resource Management (#7479)
export function doSomeWork() {
using file = new TempFile(".some_temp_file");
// use file...
if (someCondition()) {
// do some more work...
return;
}
}
This will require new AST based on the estree AST
✅ lib.d.ts Updates (#7451)
We will need to regenerate our types within scope-manager
.
Other changes with no impact to us
- Decorator Metadata
- This is a type-system + runtime change only.
- Named and Anonymous Tuple Elements
- This is a semantic error change and was already allowed syntactically.
- Easier Method Usage for Unions of Arrays
- Type-system only change.
- Type-Only Import Paths with TypeScript Implementation File Extensions
- Type-system only change.
- Comma Completions for Object Members
- This is an IDE-only change.
- Inline Variable Refactoring
- This is an IDE-only change.
- Optimized Checks for Ongoing Type Compatibility
- Type-system only change.
- Breaking Changes and Correctness Fixes
labeledElementDeclarations
May Holdundefined
Elements- This may cause some type errors that we need to handle, but not an issue.
- module and moduleResolution Must Match Under Recent Node.js settings
- Consumer-facing config validation. only
- Consistent Export Checking for Merged Symbols
- Semantic error change only.