Skip to content

[API] Narrow types of Node attributes when possible #63877

Description

In TS 6, many node attributes were typed with the types which they would always be at runtime. In TS 7 this information has been lost.

  • JSDocTypedefTag#parent should be JSDoc
  • JSDocTypedefTag#typeExpression should probably be TypeNode
  • Node#jsDoc should be readonly JSDoc[]

There are likely others I haven't noticed yet

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions