mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
289 B
289 B
Fix misplaced type cast comments (#19652 by @fisker)
// Input
foo = a ? b : (/** @type {Foo} */ (foo) ?? bar);
// Prettier stable
foo = a ? b : /** @type {Foo} */ ((foo) ?? bar);
// Prettier main
foo = a ? b : (/** @type {Foo} */ (foo) ?? bar);