From aebe225dd2ae598caeac73dad90b5395e94d43d9 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 19 Aug 2022 13:26:18 -0400 Subject: [PATCH] Make 'decorators' optional and 'undefined' --- src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts b/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts index ba948c22329..d6cdbf2969e 100644 --- a/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts +++ b/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts @@ -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.