Make 'decorators' optional and 'undefined'

This commit is contained in:
Ron Buckton
2022-08-19 13:26:18 -04:00
parent a2588b8125
commit aebe225dd2
@@ -15,7 +15,7 @@ namespace ts {
* const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
* ```
*/
readonly decorators: never;
readonly decorators?: undefined;
/**
* @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.