Skip to content

Commit

Permalink
Update deprecation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Aug 19, 2022
1 parent a63f47c commit a2588b8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/deprecatedCompat/4.8/mergeDecoratorsAndModifiers.ts
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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." };
Expand Down

0 comments on commit a2588b8

Please sign in to comment.