Skip to content

babel-ts: trailing commas after rest parameters in ambient contexts #10654

@thorn0

Description

@thorn0

see babel/babel#13100

Prettier 2.2.1
Playground link

--parser babel-ts

Input:

declare type Q = (...args: any[],) => any

Output:

SyntaxError: Unexpected token, expected ")" (1:33)
> 1 | declare type Q = (...args: any[],) => any
    |                                 ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions