diff --git a/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts b/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts index 4d44bfb84e11a..ba948c223293e 100644 --- a/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts +++ b/src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts @@ -6,9 +6,9 @@ namespace ts { export interface Node { /** - * @deprecated `decorators` has been merged with `modifiers` on the declarations that support decorators. - * To test whether a `Node` can legally have decorators, use the `ts.canHaveDecorators()` function. To read the - * decorators of a `Node` that can legally have decorators, use the `ts.getDecorators()` function. + * @deprecated `decorators` has been removed from `Node` and merged with `modifiers` on the `Node` subtypes that support them. + * Use `ts.canHaveDecorators()` to test whether a `Node` can have decorators. + * Use `ts.getDecorators()` to get the decorators of a `Node`. * * For example: * ```ts @@ -18,9 +18,9 @@ namespace ts { readonly decorators: never; /** - * @deprecated `modifiers` has been removed from `Node` and moved to the specific `Node` subtypes that support them. - * To test whether a `Node` can legally have modifiers, use the `ts.canHaveModifiers()` function. To read the modifiers - * of a `Node` that can legally have modifiers, use the `ts.getModifiers()` function. + * @deprecated `modifiers` has been removed from `Node` and moved to the `Node` subtypes that support them. + * Use `ts.canHaveModifiers()` to test whether a `Node` can have modifiers. + * Use `ts.getModifiers()` to get the modifiers of a `Node`. * * For example: * ```ts @@ -212,7 +212,6 @@ namespace ts { * @deprecated Decorators are no longer supported for this function. Callers should use an overload that does not accept a `decorators` parameter. */ updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration; - } const MUST_MERGE: DeprecationOptions = { since: "4.8", warnAfter: "4.9.0-0", message: "Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter." };