Fixes for decorators property deprecations (#50343)

* Change type of deprecated 'decorators' property

* fix 'Invalid Arguments' error for create/update constructor in factory

* Update deprecation comments

* Make 'decorators' optional and 'undefined'

* Rename '_decorators' to 'illegalDecorators'

* Update baselines
This commit is contained in:
Ron Buckton authored and GitHub committed 2022-08-19 14:27:26 -04:00
1 parent ef88fbb8ab
commit 284837d66b
11 files changed
+301 -440

No files matched your search

@@ -653,7 +653,7 @@ namespace ts.refactor.convertParamsToDestructuredObject {
interface ValidParameterDeclaration extends ParameterDeclaration {
name: Identifier;
modifiers: undefined;
decorators: undefined;
illegalDecorators: undefined;
}
interface GroupedReferences {