Skip to content

Make trailing commas on binding/rest not an error in .d.ts files #23070

Closed
@weswigham

Description

@weswigham

#22262 is pretty breaky, and the change is to be more spec compliant. To reduce how breaky the change is, we shouldn't report the error if it happens in a .d.ts file, as there will be no associated emit - this way older .d.ts files won't need to be updated just to remove trailing commas that we can actually handle just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions