|
| 1 | +diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts |
| 2 | +index 7135bb786332478763097e4fa2274ac0222ecbb2..446baab7b0d29f1e88842f97f58d343b816c8df0 100644 |
| 3 | +--- a/lib/typescript.d.ts |
| 4 | ++++ b/lib/typescript.d.ts |
| 5 | +@@ -4493,8 +4493,8 @@ declare namespace ts { |
| 6 | + JSDocFunctionType = 324, |
| 7 | + JSDocVariadicType = 325, |
| 8 | + JSDocNamepathType = 326, |
| 9 | ++ /** @deprecated This was only added in 4.7 */ |
| 10 | + JSDoc = 327, |
| 11 | +- /** @deprecated Use SyntaxKind.JSDoc */ |
| 12 | + JSDocComment = 327, |
| 13 | + JSDocText = 328, |
| 14 | + JSDocTypeLiteral = 329, |
| 15 | +@@ -5068,6 +5068,8 @@ declare namespace ts { |
| 16 | + readonly name: PropertyName; |
| 17 | + readonly questionToken?: QuestionToken; |
| 18 | + readonly type?: TypeNode; |
| 19 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 20 | ++ readonly initializer?: Expression | undefined; |
| 21 | + } |
| 22 | + interface PropertyDeclaration extends ClassElement, JSDocContainer { |
| 23 | + readonly kind: SyntaxKind.PropertyDeclaration; |
| 24 | +@@ -5093,6 +5095,10 @@ declare namespace ts { |
| 25 | + readonly parent: ObjectLiteralExpression; |
| 26 | + readonly name: PropertyName; |
| 27 | + readonly initializer: Expression; |
| 28 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 29 | ++ readonly questionToken?: QuestionToken | undefined; |
| 30 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 31 | ++ readonly exclamationToken?: ExclamationToken | undefined; |
| 32 | + } |
| 33 | + interface ShorthandPropertyAssignment extends ObjectLiteralElement, JSDocContainer { |
| 34 | + readonly kind: SyntaxKind.ShorthandPropertyAssignment; |
| 35 | +@@ -5100,6 +5106,12 @@ declare namespace ts { |
| 36 | + readonly name: Identifier; |
| 37 | + readonly equalsToken?: EqualsToken; |
| 38 | + readonly objectAssignmentInitializer?: Expression; |
| 39 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 40 | ++ readonly modifiers?: NodeArray<Modifier> | undefined; |
| 41 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 42 | ++ readonly questionToken?: QuestionToken | undefined; |
| 43 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 44 | ++ readonly exclamationToken?: ExclamationToken | undefined; |
| 45 | + } |
| 46 | + interface SpreadAssignment extends ObjectLiteralElement, JSDocContainer { |
| 47 | + readonly kind: SyntaxKind.SpreadAssignment; |
| 48 | +@@ -5224,6 +5236,8 @@ declare namespace ts { |
| 49 | + } |
| 50 | + interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { |
| 51 | + readonly kind: SyntaxKind.FunctionType; |
| 52 | ++ /** @deprecated removed in 5.0 but we want to keep it for backwards compatibility checks! */ |
| 53 | ++ readonly modifiers?: NodeArray<Modifier> | undefined; |
| 54 | + } |
| 55 | + interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer { |
| 56 | + readonly kind: SyntaxKind.ConstructorType; |
| 57 | +@@ -8995,7 +9009,13 @@ declare namespace ts { |
| 58 | + function symbolName(symbol: Symbol): string; |
| 59 | + function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined; |
| 60 | + function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined; |
| 61 | ++ /** |
| 62 | ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. |
| 63 | ++ */ |
| 64 | + function getDecorators(node: HasDecorators): readonly Decorator[] | undefined; |
65 | ++ /** |
| 66 | ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. |
| 67 | ++ */ |
| 68 | + function getModifiers(node: HasModifiers): readonly Modifier[] | undefined; |
| 69 | + /** |
| 70 | + * Gets the JSDoc parameter tags for the node if present. |
| 71 | +@@ -9525,7 +9545,13 @@ declare namespace ts { |
| 72 | + function isModuleName(node: Node): node is ModuleName; |
| 73 | + function isBinaryOperatorToken(node: Node): node is BinaryOperatorToken; |
| 74 | + function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T; |
| 75 | ++ /** |
| 76 | ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getModifiers from `@typescript-eslint/type-utils`. |
| 77 | ++ */ |
| 78 | + function canHaveModifiers(node: Node): node is HasModifiers; |
| 79 | ++ /** |
| 80 | ++ * @deprecated don't use this directly as it does not exist pre-4.8; instead use getDecorators from `@typescript-eslint/type-utils`. |
| 81 | ++ */ |
| 82 | + function canHaveDecorators(node: Node): node is HasDecorators; |
| 83 | + /** |
| 84 | + * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes |
0 commit comments