373 B
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;