Files
test-repo/changelog_unreleased/javascript/17491.md
T

373 B

Support type cast comments for acorn and meriyah parser (#17491, #17566 by @ArnaudBarre, #17600 by #fisker)

This was previously only supported by the Babel parser.

// Input
/** @type {MyType} */ (x).foo;

// Prettier stable (--parser=acorn|meriyah)
/** @type {MyType} */ x.foo;

// Prettier main
/** @type {MyType} */ (x).foo;