Skip to content

TypeScript 5.2 Support #7155

Closed
Closed
@bradzacher

Description

@bradzacher

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
  • 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 Hold undefined 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions