mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Make 'decorators' optional and 'undefined'
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user