Skip to content

JSDoc typedef parentheses are removed if member access is done on a typedef'd object variable #6122

@rsimha

Description

@rsimha

Prettier 1.17.1

Before:

foo = /** @type {!Foo} */ (/** @type {!Baz} */ (baz).bar );

After:

foo = /** @type {!Foo} */ /** @type {!Baz} */ (baz.bar);

Playground link here

Related to #4799

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:commentsIssues with how Prettier prints commentslang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions