diff --git a/changelog_unreleased/typescript/14548.md b/changelog_unreleased/typescript/14548.md deleted file mode 100644 index 82262a846..000000000 --- a/changelog_unreleased/typescript/14548.md +++ /dev/null @@ -1,24 +0,0 @@ -#### Allow decorators on private members and class expressions (#14548 by @fisker) - - -```ts -// Input -class A { - @decorator() - #privateMethod () {} -} - -// Prettier stable -SyntaxError: Decorators are not valid here. (2:3) - 1 | class A { -> 2 | @decorator() - | ^^^^^^^^^^^^ - 3 | #privateMethod () {} - 4 | } - -// Prettier main -class A { - @decorator() - #privateMethod() {} -} -``` diff --git a/changelog_unreleased/typescript/14584.md b/changelog_unreleased/typescript/14584.md deleted file mode 100644 index 70cf95469..000000000 --- a/changelog_unreleased/typescript/14584.md +++ /dev/null @@ -1,31 +0,0 @@ -#### Allow multiple decorators on same getter/setter (#14584 by @fisker) - - -```ts -// Input -class A { - @decorator() - get foo () {} - - @decorator() - set foo (value) {} -} - -// Prettier stable -SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3) - 3 | get foo () {} - 4 | -> 5 | @decorator() - | ^^^^^^^^^^^^ - 6 | set foo (value) {} - 7 | } - -// Prettier main -class A { - @decorator() - get foo() {} - - @decorator() - set foo(value) {} -} -```