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

16 lines
373 B
Markdown

#### 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.
<!-- prettier-ignore -->
```js
// Input
/** @type {MyType} */ (x).foo;
// Prettier stable (--parser=acorn|meriyah)
/** @type {MyType} */ x.foo;
// Prettier main
/** @type {MyType} */ (x).foo;
```