Skip to content

Allow trailing comma on tuple types. #28893

Closed
@cakoose

Description

@cakoose
type Point = [
    number,
    number,  // error: trailing comma not allowed
];

const point = [
    1,
    2,
];

Is there a reason the trailing comma isn't allowed in tuple types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions