File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
tests/baselines/reference/api Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -11781,20 +11781,20 @@ declare namespace ts {
1178111781declare namespace ts {
1178211782 interface Node {
1178311783 /**
11784- * @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators .
11785- * To test whether a `Node` can legally have decorators, use the `ts.canHaveDecorators()` function. To read the
11786- * decorators of a `Node` that can legally have decorators, use the `ts.getDecorators()` function .
11784+ * @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them .
11785+ * Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
11786+ * Use `ts.getDecorators()` to get the decorators of a `Node` .
1178711787 *
1178811788 * For example:
1178911789 * ```ts
1179011790 * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
1179111791 * ```
1179211792 */
11793- readonly decorators: never ;
11793+ readonly decorators?: undefined ;
1179411794 /**
11795- * @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them.
11796- * To test whether a `Node` can legally have modifiers, use the `ts.canHaveModifiers()` function. To read the modifiers
11797- * of a `Node` that can legally have modifiers, use the `ts.getModifiers()` function .
11795+ * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
11796+ * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
11797+ * Use `ts.getModifiers()` to get the modifiers of a `Node` .
1179811798 *
1179911799 * For example:
1180011800 * ```ts
Original file line number Diff line number Diff line change @@ -7913,20 +7913,20 @@ declare namespace ts {
79137913declare namespace ts {
79147914 interface Node {
79157915 /**
7916- * @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators .
7917- * To test whether a `Node` can legally have decorators, use the `ts.canHaveDecorators()` function. To read the
7918- * decorators of a `Node` that can legally have decorators, use the `ts.getDecorators()` function .
7916+ * @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them .
7917+ * Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators.
7918+ * Use `ts.getDecorators()` to get the decorators of a `Node` .
79197919 *
79207920 * For example:
79217921 * ```ts
79227922 * const decorators = ts.canHaveDecorators(node) ? ts.getDecorators(node) : undefined;
79237923 * ```
79247924 */
7925- readonly decorators : never ;
7925+ readonly decorators ?: undefined ;
79267926 /**
7927- * @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them.
7928- * To test whether a `Node` can legally have modifiers, use the `ts.canHaveModifiers()` function. To read the modifiers
7929- * of a `Node` that can legally have modifiers, use the `ts.getModifiers()` function .
7927+ * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them.
7928+ * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers.
7929+ * Use `ts.getModifiers()` to get the modifiers of a `Node` .
79307930 *
79317931 * For example:
79327932 * ```ts
You can’t perform that action at this time.
0 commit comments