Skip to content

Use SymbolFlags.TypeAlias when binding a jsdoc enum instead of SymbolFlags.Enum #32413

Closed
@weswigham

Description

@weswigham

While working on #32372 I realized something - While the jsdoc tag is called @enum, behaviorally it does nothing like what a TS enum would do and does everything that a type alias would do (it is really like an @typedef with some extra checks). We should be able to remove heaps of special case code just by changing the flag we bind with and the associated declaration types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JSDocRelates to JSDoc parsing and type generationInfrastructureIssue relates to TypeScript team infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions