diff --git a/changelog_unreleased/typescript/19492.md b/changelog_unreleased/typescript/19492.md deleted file mode 100644 index 72ca50d6d..000000000 --- a/changelog_unreleased/typescript/19492.md +++ /dev/null @@ -1,23 +0,0 @@ -#### Allow decorators to be used with declare on class fields (#19492 by @evoactivity) - -Extensively used within the Ember ecosystem, decorators with `declare` on class fields will ignore the babel parser error and allow Prettier to format the code without breaking it. - - -```ts -// Input -export default class ProjectStatusComponent extends Component { - @service declare server: ServerService; -} - -// Prettier stable -// SyntaxError: Decorators can't be used with a declare field. (2:3) -// 1 | export default class ProjectStatusComponent extends Component { -//> 2 | @service declare server: ServerService; -// | ^ -// 3 | } - -// Prettier main -export default class ProjectStatusComponent extends Component { - @service declare server: ServerService; -} -```