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
2022-08-19 14:27:26 -04:00
committed by GitHub
parent ef88fbb8ab
commit 284837d66b
11 changed files with 301 additions and 440 deletions

View File

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