Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeScript 4.7 Support #4800

Closed
Closed
Labels
ASTPRs and Issues about the AST structureNew TypeScript Versionaccepting prsGo ahead, send a pull request that resolves this issuedependenciesIssue about dependencies of the package
@bradzacher

Description

@bradzacher

https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-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.

🔲 New Extensions

We'll want to add.cjs,.mjs,.mts, and.cts (as well as.d.cts and.d.mts) to our parser tooling so that we can correctly detect file types and default supported extensions.

Some code pointers to start off:
[1][2][3][4][5]

Essentially just search for.ts and go from there.

✅ Instantiation Expressions (#4938)

This will require AST changes.

Babel:babel/babel#14457

// extend ExpressiontypeExpression=Expression|TSExpressionWithTypeArguments;// Add new nodeinterfaceTSExpressionWithTypeArguments{type:"TSExpressionWithTypeArguments";expression:Expression;typeParameters:TSTypeParameterInstantiation;}

extends Constraints oninfer Type Variables (#4830)

This is already supported and will not require AST changes

✅ Optional Variance Annotations for Type Parameters (#4831)

This will require AST changes.

Babel:babel/babel#14359

// extend TSTypeParameterinterfaceTSTypeParameter{in?:boolean;out?:boolean;}

lib.d.ts Updates (#4829)

We will need to regenerate our types withinscope-manager.


Other changes with no impact to us

  • ECMAScript Module Support in Node.js
  • type inpackage.json
  • CommonJS Interop
  • package.json Exports, Imports, and Self-Referencing
    • Though with the next major we'll probably want to explore this to lock down our APIs and prevent deepdist imports whilst also providing nicely structured deep imports (i.e. maputils/dist/foo =>utils/foo)
  • Control over Module Detection
  • Control-Flow Analysis for Computed Properties
    • This will just make all of our rules more accurate for free!
  • Improved Function Inference in Objects and Methods
  • Resolution Customization withmoduleSuffixes
  • resolution-mode
  • Groups-Aware Organize Imports
  • Object Method Snippet Completions
  • Type Parameters No Longer Assignable to {} in strictNullChecks
  • readFile Method is No Longer Optional onLanguageServiceHost
  • readonly Tuples Have areadonly length Property

Metadata

Metadata

Assignees

No one assigned

    Labels

    ASTPRs and Issues about the AST structureNew TypeScript Versionaccepting prsGo ahead, send a pull request that resolves this issuedependenciesIssue about dependencies of the package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp