Skip to content

typescript: unneeded parentheses around type annotation aren't removed #5247

@thorn0

Description

@thorn0

Prettier 1.14.3
Playground link

--parser typescript

Input:

class Foo {
  bar: (() => boolean);
}

Output:

class Foo {
  bar: (() => boolean);
}

Expected behavior:

class Foo {
  bar: () => boolean;
}

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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions