Files
test-repo/changelog_unreleased/javascript/pr-7011.md
T

542 B

Preserve parentheses for JSDoc type casting with extra trailing spaces and asterisks (#7011 by @evilebottnawi)

// Input
const foo = /** @type {!Foo} **/ (baz);
const bar = /** @type {!Foo}  * * */(baz);

// Prettier stable
const foo = /** @type {!Foo} **/ baz;
const bar = /** @type {!Foo}  * * */ baz;

// Prettier master
const foo = /** @type {!Foo} **/ (baz);
const bar = /** @type {!Foo}  * * */ (baz);