@saasmakers/eslint 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eslint.config.cjs +1 -3
- package/dist/eslint.config.d.cts +1 -2
- package/dist/eslint.config.d.mts +1 -2
- package/dist/eslint.config.d.ts +1 -2
- package/dist/eslint.config.mjs +1 -2
- package/dist/index.d.cts +2864 -530
- package/dist/index.d.mts +2864 -530
- package/dist/index.d.ts +2864 -530
- package/package.json +6 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,2412 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
|
-
import { SyntaxKind, Program as Program$
|
|
2
|
+
import { SyntaxKind, Program as Program$2 } from 'typescript';
|
|
3
3
|
import * as eslint from 'eslint';
|
|
4
4
|
|
|
5
|
+
/**********************************************
|
|
6
|
+
* DO NOT MODIFY THIS FILE MANUALLY *
|
|
7
|
+
* *
|
|
8
|
+
* THIS FILE HAS BEEN COPIED FROM ast-spec. *
|
|
9
|
+
* ANY CHANGES WILL BE LOST ON THE NEXT BUILD *
|
|
10
|
+
* *
|
|
11
|
+
* MAKE CHANGES TO ast-spec AND THEN RUN *
|
|
12
|
+
* pnpm run build *
|
|
13
|
+
**********************************************/
|
|
14
|
+
|
|
15
|
+
declare type Accessibility$1 = 'private' | 'protected' | 'public';
|
|
16
|
+
declare type AccessorProperty$1 = AccessorPropertyComputedName$1 | AccessorPropertyNonComputedName$1;
|
|
17
|
+
declare interface AccessorPropertyComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
|
|
18
|
+
type: AST_NODE_TYPES$1.AccessorProperty;
|
|
19
|
+
}
|
|
20
|
+
declare interface AccessorPropertyNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
|
|
21
|
+
type: AST_NODE_TYPES$1.AccessorProperty;
|
|
22
|
+
}
|
|
23
|
+
declare interface ArrayExpression$1 extends BaseNode$1 {
|
|
24
|
+
type: AST_NODE_TYPES$1.ArrayExpression;
|
|
25
|
+
/**
|
|
26
|
+
* an element will be `null` in the case of a sparse array: `[1, ,3]`
|
|
27
|
+
*/
|
|
28
|
+
elements: (Expression$1 | SpreadElement$1 | null)[];
|
|
29
|
+
}
|
|
30
|
+
declare interface ArrayPattern$1 extends BaseNode$1 {
|
|
31
|
+
type: AST_NODE_TYPES$1.ArrayPattern;
|
|
32
|
+
decorators: Decorator$1[];
|
|
33
|
+
elements: (DestructuringPattern$1 | null)[];
|
|
34
|
+
optional: boolean;
|
|
35
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
36
|
+
}
|
|
37
|
+
declare interface ArrowFunctionExpression$1 extends BaseNode$1 {
|
|
38
|
+
type: AST_NODE_TYPES$1.ArrowFunctionExpression;
|
|
39
|
+
async: boolean;
|
|
40
|
+
body: BlockStatement$1 | Expression$1;
|
|
41
|
+
expression: boolean;
|
|
42
|
+
generator: false;
|
|
43
|
+
id: null;
|
|
44
|
+
params: Parameter$1[];
|
|
45
|
+
returnType: TSTypeAnnotation$1 | undefined;
|
|
46
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
47
|
+
}
|
|
48
|
+
declare interface AssignmentExpression$1 extends BaseNode$1 {
|
|
49
|
+
type: AST_NODE_TYPES$1.AssignmentExpression;
|
|
50
|
+
left: Expression$1;
|
|
51
|
+
operator: ValueOf$1<AssignmentOperatorToText$1>;
|
|
52
|
+
right: Expression$1;
|
|
53
|
+
}
|
|
54
|
+
declare interface AssignmentOperatorToText$1 {
|
|
55
|
+
[SyntaxKind.AmpersandAmpersandEqualsToken]: '&&=';
|
|
56
|
+
[SyntaxKind.AmpersandEqualsToken]: '&=';
|
|
57
|
+
[SyntaxKind.AsteriskAsteriskEqualsToken]: '**=';
|
|
58
|
+
[SyntaxKind.AsteriskEqualsToken]: '*=';
|
|
59
|
+
[SyntaxKind.BarBarEqualsToken]: '||=';
|
|
60
|
+
[SyntaxKind.BarEqualsToken]: '|=';
|
|
61
|
+
[SyntaxKind.CaretEqualsToken]: '^=';
|
|
62
|
+
[SyntaxKind.EqualsToken]: '=';
|
|
63
|
+
[SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>=';
|
|
64
|
+
[SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>=';
|
|
65
|
+
[SyntaxKind.LessThanLessThanEqualsToken]: '<<=';
|
|
66
|
+
[SyntaxKind.MinusEqualsToken]: '-=';
|
|
67
|
+
[SyntaxKind.PercentEqualsToken]: '%=';
|
|
68
|
+
[SyntaxKind.PlusEqualsToken]: '+=';
|
|
69
|
+
[SyntaxKind.QuestionQuestionEqualsToken]: '??=';
|
|
70
|
+
[SyntaxKind.SlashEqualsToken]: '/=';
|
|
71
|
+
}
|
|
72
|
+
declare interface AssignmentPattern$1 extends BaseNode$1 {
|
|
73
|
+
type: AST_NODE_TYPES$1.AssignmentPattern;
|
|
74
|
+
decorators: Decorator$1[];
|
|
75
|
+
left: BindingName$1;
|
|
76
|
+
optional: boolean;
|
|
77
|
+
right: Expression$1;
|
|
78
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
79
|
+
}
|
|
80
|
+
declare enum AST_NODE_TYPES$1 {
|
|
81
|
+
AccessorProperty = "AccessorProperty",
|
|
82
|
+
ArrayExpression = "ArrayExpression",
|
|
83
|
+
ArrayPattern = "ArrayPattern",
|
|
84
|
+
ArrowFunctionExpression = "ArrowFunctionExpression",
|
|
85
|
+
AssignmentExpression = "AssignmentExpression",
|
|
86
|
+
AssignmentPattern = "AssignmentPattern",
|
|
87
|
+
AwaitExpression = "AwaitExpression",
|
|
88
|
+
BinaryExpression = "BinaryExpression",
|
|
89
|
+
BlockStatement = "BlockStatement",
|
|
90
|
+
BreakStatement = "BreakStatement",
|
|
91
|
+
CallExpression = "CallExpression",
|
|
92
|
+
CatchClause = "CatchClause",
|
|
93
|
+
ChainExpression = "ChainExpression",
|
|
94
|
+
ClassBody = "ClassBody",
|
|
95
|
+
ClassDeclaration = "ClassDeclaration",
|
|
96
|
+
ClassExpression = "ClassExpression",
|
|
97
|
+
ConditionalExpression = "ConditionalExpression",
|
|
98
|
+
ContinueStatement = "ContinueStatement",
|
|
99
|
+
DebuggerStatement = "DebuggerStatement",
|
|
100
|
+
Decorator = "Decorator",
|
|
101
|
+
DoWhileStatement = "DoWhileStatement",
|
|
102
|
+
EmptyStatement = "EmptyStatement",
|
|
103
|
+
ExportAllDeclaration = "ExportAllDeclaration",
|
|
104
|
+
ExportDefaultDeclaration = "ExportDefaultDeclaration",
|
|
105
|
+
ExportNamedDeclaration = "ExportNamedDeclaration",
|
|
106
|
+
ExportSpecifier = "ExportSpecifier",
|
|
107
|
+
ExpressionStatement = "ExpressionStatement",
|
|
108
|
+
ForInStatement = "ForInStatement",
|
|
109
|
+
ForOfStatement = "ForOfStatement",
|
|
110
|
+
ForStatement = "ForStatement",
|
|
111
|
+
FunctionDeclaration = "FunctionDeclaration",
|
|
112
|
+
FunctionExpression = "FunctionExpression",
|
|
113
|
+
Identifier = "Identifier",
|
|
114
|
+
IfStatement = "IfStatement",
|
|
115
|
+
ImportAttribute = "ImportAttribute",
|
|
116
|
+
ImportDeclaration = "ImportDeclaration",
|
|
117
|
+
ImportDefaultSpecifier = "ImportDefaultSpecifier",
|
|
118
|
+
ImportExpression = "ImportExpression",
|
|
119
|
+
ImportNamespaceSpecifier = "ImportNamespaceSpecifier",
|
|
120
|
+
ImportSpecifier = "ImportSpecifier",
|
|
121
|
+
JSXAttribute = "JSXAttribute",
|
|
122
|
+
JSXClosingElement = "JSXClosingElement",
|
|
123
|
+
JSXClosingFragment = "JSXClosingFragment",
|
|
124
|
+
JSXElement = "JSXElement",
|
|
125
|
+
JSXEmptyExpression = "JSXEmptyExpression",
|
|
126
|
+
JSXExpressionContainer = "JSXExpressionContainer",
|
|
127
|
+
JSXFragment = "JSXFragment",
|
|
128
|
+
JSXIdentifier = "JSXIdentifier",
|
|
129
|
+
JSXMemberExpression = "JSXMemberExpression",
|
|
130
|
+
JSXNamespacedName = "JSXNamespacedName",
|
|
131
|
+
JSXOpeningElement = "JSXOpeningElement",
|
|
132
|
+
JSXOpeningFragment = "JSXOpeningFragment",
|
|
133
|
+
JSXSpreadAttribute = "JSXSpreadAttribute",
|
|
134
|
+
JSXSpreadChild = "JSXSpreadChild",
|
|
135
|
+
JSXText = "JSXText",
|
|
136
|
+
LabeledStatement = "LabeledStatement",
|
|
137
|
+
Literal = "Literal",
|
|
138
|
+
LogicalExpression = "LogicalExpression",
|
|
139
|
+
MemberExpression = "MemberExpression",
|
|
140
|
+
MetaProperty = "MetaProperty",
|
|
141
|
+
MethodDefinition = "MethodDefinition",
|
|
142
|
+
NewExpression = "NewExpression",
|
|
143
|
+
ObjectExpression = "ObjectExpression",
|
|
144
|
+
ObjectPattern = "ObjectPattern",
|
|
145
|
+
PrivateIdentifier = "PrivateIdentifier",
|
|
146
|
+
Program = "Program",
|
|
147
|
+
Property = "Property",
|
|
148
|
+
PropertyDefinition = "PropertyDefinition",
|
|
149
|
+
RestElement = "RestElement",
|
|
150
|
+
ReturnStatement = "ReturnStatement",
|
|
151
|
+
SequenceExpression = "SequenceExpression",
|
|
152
|
+
SpreadElement = "SpreadElement",
|
|
153
|
+
StaticBlock = "StaticBlock",
|
|
154
|
+
Super = "Super",
|
|
155
|
+
SwitchCase = "SwitchCase",
|
|
156
|
+
SwitchStatement = "SwitchStatement",
|
|
157
|
+
TaggedTemplateExpression = "TaggedTemplateExpression",
|
|
158
|
+
TemplateElement = "TemplateElement",
|
|
159
|
+
TemplateLiteral = "TemplateLiteral",
|
|
160
|
+
ThisExpression = "ThisExpression",
|
|
161
|
+
ThrowStatement = "ThrowStatement",
|
|
162
|
+
TryStatement = "TryStatement",
|
|
163
|
+
UnaryExpression = "UnaryExpression",
|
|
164
|
+
UpdateExpression = "UpdateExpression",
|
|
165
|
+
VariableDeclaration = "VariableDeclaration",
|
|
166
|
+
VariableDeclarator = "VariableDeclarator",
|
|
167
|
+
WhileStatement = "WhileStatement",
|
|
168
|
+
WithStatement = "WithStatement",
|
|
169
|
+
YieldExpression = "YieldExpression",
|
|
170
|
+
TSAbstractAccessorProperty = "TSAbstractAccessorProperty",
|
|
171
|
+
TSAbstractKeyword = "TSAbstractKeyword",
|
|
172
|
+
TSAbstractMethodDefinition = "TSAbstractMethodDefinition",
|
|
173
|
+
TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition",
|
|
174
|
+
TSAnyKeyword = "TSAnyKeyword",
|
|
175
|
+
TSArrayType = "TSArrayType",
|
|
176
|
+
TSAsExpression = "TSAsExpression",
|
|
177
|
+
TSAsyncKeyword = "TSAsyncKeyword",
|
|
178
|
+
TSBigIntKeyword = "TSBigIntKeyword",
|
|
179
|
+
TSBooleanKeyword = "TSBooleanKeyword",
|
|
180
|
+
TSCallSignatureDeclaration = "TSCallSignatureDeclaration",
|
|
181
|
+
TSClassImplements = "TSClassImplements",
|
|
182
|
+
TSConditionalType = "TSConditionalType",
|
|
183
|
+
TSConstructorType = "TSConstructorType",
|
|
184
|
+
TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration",
|
|
185
|
+
TSDeclareFunction = "TSDeclareFunction",
|
|
186
|
+
TSDeclareKeyword = "TSDeclareKeyword",
|
|
187
|
+
TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression",
|
|
188
|
+
TSEnumBody = "TSEnumBody",
|
|
189
|
+
TSEnumDeclaration = "TSEnumDeclaration",
|
|
190
|
+
TSEnumMember = "TSEnumMember",
|
|
191
|
+
TSExportAssignment = "TSExportAssignment",
|
|
192
|
+
TSExportKeyword = "TSExportKeyword",
|
|
193
|
+
TSExternalModuleReference = "TSExternalModuleReference",
|
|
194
|
+
TSFunctionType = "TSFunctionType",
|
|
195
|
+
TSImportEqualsDeclaration = "TSImportEqualsDeclaration",
|
|
196
|
+
TSImportType = "TSImportType",
|
|
197
|
+
TSIndexedAccessType = "TSIndexedAccessType",
|
|
198
|
+
TSIndexSignature = "TSIndexSignature",
|
|
199
|
+
TSInferType = "TSInferType",
|
|
200
|
+
TSInstantiationExpression = "TSInstantiationExpression",
|
|
201
|
+
TSInterfaceBody = "TSInterfaceBody",
|
|
202
|
+
TSInterfaceDeclaration = "TSInterfaceDeclaration",
|
|
203
|
+
TSInterfaceHeritage = "TSInterfaceHeritage",
|
|
204
|
+
TSIntersectionType = "TSIntersectionType",
|
|
205
|
+
TSIntrinsicKeyword = "TSIntrinsicKeyword",
|
|
206
|
+
TSLiteralType = "TSLiteralType",
|
|
207
|
+
TSMappedType = "TSMappedType",
|
|
208
|
+
TSMethodSignature = "TSMethodSignature",
|
|
209
|
+
TSModuleBlock = "TSModuleBlock",
|
|
210
|
+
TSModuleDeclaration = "TSModuleDeclaration",
|
|
211
|
+
TSNamedTupleMember = "TSNamedTupleMember",
|
|
212
|
+
TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration",
|
|
213
|
+
TSNeverKeyword = "TSNeverKeyword",
|
|
214
|
+
TSNonNullExpression = "TSNonNullExpression",
|
|
215
|
+
TSNullKeyword = "TSNullKeyword",
|
|
216
|
+
TSNumberKeyword = "TSNumberKeyword",
|
|
217
|
+
TSObjectKeyword = "TSObjectKeyword",
|
|
218
|
+
TSOptionalType = "TSOptionalType",
|
|
219
|
+
TSParameterProperty = "TSParameterProperty",
|
|
220
|
+
TSPrivateKeyword = "TSPrivateKeyword",
|
|
221
|
+
TSPropertySignature = "TSPropertySignature",
|
|
222
|
+
TSProtectedKeyword = "TSProtectedKeyword",
|
|
223
|
+
TSPublicKeyword = "TSPublicKeyword",
|
|
224
|
+
TSQualifiedName = "TSQualifiedName",
|
|
225
|
+
TSReadonlyKeyword = "TSReadonlyKeyword",
|
|
226
|
+
TSRestType = "TSRestType",
|
|
227
|
+
TSSatisfiesExpression = "TSSatisfiesExpression",
|
|
228
|
+
TSStaticKeyword = "TSStaticKeyword",
|
|
229
|
+
TSStringKeyword = "TSStringKeyword",
|
|
230
|
+
TSSymbolKeyword = "TSSymbolKeyword",
|
|
231
|
+
TSTemplateLiteralType = "TSTemplateLiteralType",
|
|
232
|
+
TSThisType = "TSThisType",
|
|
233
|
+
TSTupleType = "TSTupleType",
|
|
234
|
+
TSTypeAliasDeclaration = "TSTypeAliasDeclaration",
|
|
235
|
+
TSTypeAnnotation = "TSTypeAnnotation",
|
|
236
|
+
TSTypeAssertion = "TSTypeAssertion",
|
|
237
|
+
TSTypeLiteral = "TSTypeLiteral",
|
|
238
|
+
TSTypeOperator = "TSTypeOperator",
|
|
239
|
+
TSTypeParameter = "TSTypeParameter",
|
|
240
|
+
TSTypeParameterDeclaration = "TSTypeParameterDeclaration",
|
|
241
|
+
TSTypeParameterInstantiation = "TSTypeParameterInstantiation",
|
|
242
|
+
TSTypePredicate = "TSTypePredicate",
|
|
243
|
+
TSTypeQuery = "TSTypeQuery",
|
|
244
|
+
TSTypeReference = "TSTypeReference",
|
|
245
|
+
TSUndefinedKeyword = "TSUndefinedKeyword",
|
|
246
|
+
TSUnionType = "TSUnionType",
|
|
247
|
+
TSUnknownKeyword = "TSUnknownKeyword",
|
|
248
|
+
TSVoidKeyword = "TSVoidKeyword"
|
|
249
|
+
}
|
|
250
|
+
declare enum AST_TOKEN_TYPES$1 {
|
|
251
|
+
Boolean = "Boolean",
|
|
252
|
+
Identifier = "Identifier",
|
|
253
|
+
JSXIdentifier = "JSXIdentifier",
|
|
254
|
+
PrivateIdentifier = "PrivateIdentifier",
|
|
255
|
+
JSXText = "JSXText",
|
|
256
|
+
Keyword = "Keyword",
|
|
257
|
+
Null = "Null",
|
|
258
|
+
Numeric = "Numeric",
|
|
259
|
+
Punctuator = "Punctuator",
|
|
260
|
+
RegularExpression = "RegularExpression",
|
|
261
|
+
String = "String",
|
|
262
|
+
Template = "Template",
|
|
263
|
+
Block = "Block",
|
|
264
|
+
Line = "Line"
|
|
265
|
+
}
|
|
266
|
+
declare interface AwaitExpression$1 extends BaseNode$1 {
|
|
267
|
+
type: AST_NODE_TYPES$1.AwaitExpression;
|
|
268
|
+
argument: Expression$1;
|
|
269
|
+
}
|
|
270
|
+
declare interface BaseNode$1 extends NodeOrTokenData$1 {
|
|
271
|
+
type: AST_NODE_TYPES$1;
|
|
272
|
+
}
|
|
273
|
+
declare interface BaseToken$1 extends NodeOrTokenData$1 {
|
|
274
|
+
type: AST_TOKEN_TYPES$1;
|
|
275
|
+
value: string;
|
|
276
|
+
}
|
|
277
|
+
declare interface BigIntLiteral$1 extends LiteralBase$1 {
|
|
278
|
+
bigint: string;
|
|
279
|
+
value: bigint | null;
|
|
280
|
+
}
|
|
281
|
+
declare type BinaryExpression$1 = PrivateInExpression$1 | SymmetricBinaryExpression$1;
|
|
282
|
+
declare interface BinaryOperatorToText$1 {
|
|
283
|
+
[SyntaxKind.AmpersandAmpersandToken]: '&&';
|
|
284
|
+
[SyntaxKind.AmpersandToken]: '&';
|
|
285
|
+
[SyntaxKind.AsteriskAsteriskToken]: '**';
|
|
286
|
+
[SyntaxKind.AsteriskToken]: '*';
|
|
287
|
+
[SyntaxKind.BarBarToken]: '||';
|
|
288
|
+
[SyntaxKind.BarToken]: '|';
|
|
289
|
+
[SyntaxKind.CaretToken]: '^';
|
|
290
|
+
[SyntaxKind.EqualsEqualsEqualsToken]: '===';
|
|
291
|
+
[SyntaxKind.EqualsEqualsToken]: '==';
|
|
292
|
+
[SyntaxKind.ExclamationEqualsEqualsToken]: '!==';
|
|
293
|
+
[SyntaxKind.ExclamationEqualsToken]: '!=';
|
|
294
|
+
[SyntaxKind.GreaterThanEqualsToken]: '>=';
|
|
295
|
+
[SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>';
|
|
296
|
+
[SyntaxKind.GreaterThanGreaterThanToken]: '>>';
|
|
297
|
+
[SyntaxKind.GreaterThanToken]: '>';
|
|
298
|
+
[SyntaxKind.InKeyword]: 'in';
|
|
299
|
+
[SyntaxKind.InstanceOfKeyword]: 'instanceof';
|
|
300
|
+
[SyntaxKind.LessThanEqualsToken]: '<=';
|
|
301
|
+
[SyntaxKind.LessThanLessThanToken]: '<<';
|
|
302
|
+
[SyntaxKind.LessThanToken]: '<';
|
|
303
|
+
[SyntaxKind.MinusToken]: '-';
|
|
304
|
+
[SyntaxKind.PercentToken]: '%';
|
|
305
|
+
[SyntaxKind.PlusToken]: '+';
|
|
306
|
+
[SyntaxKind.SlashToken]: '/';
|
|
307
|
+
}
|
|
308
|
+
declare type BindingName$1 = BindingPattern$1 | Identifier$1;
|
|
309
|
+
declare type BindingPattern$1 = ArrayPattern$1 | ObjectPattern$1;
|
|
310
|
+
declare interface BlockComment$1 extends BaseToken$1 {
|
|
311
|
+
type: AST_TOKEN_TYPES$1.Block;
|
|
312
|
+
}
|
|
313
|
+
declare interface BlockStatement$1 extends BaseNode$1 {
|
|
314
|
+
type: AST_NODE_TYPES$1.BlockStatement;
|
|
315
|
+
body: Statement$1[];
|
|
316
|
+
}
|
|
317
|
+
declare interface BooleanLiteral$1 extends LiteralBase$1 {
|
|
318
|
+
raw: 'false' | 'true';
|
|
319
|
+
value: boolean;
|
|
320
|
+
}
|
|
321
|
+
declare interface BooleanToken$1 extends BaseToken$1 {
|
|
322
|
+
type: AST_TOKEN_TYPES$1.Boolean;
|
|
323
|
+
}
|
|
324
|
+
declare interface BreakStatement$1 extends BaseNode$1 {
|
|
325
|
+
type: AST_NODE_TYPES$1.BreakStatement;
|
|
326
|
+
label: Identifier$1 | null;
|
|
327
|
+
}
|
|
328
|
+
declare interface CallExpression$1 extends BaseNode$1 {
|
|
329
|
+
type: AST_NODE_TYPES$1.CallExpression;
|
|
330
|
+
arguments: CallExpressionArgument$1[];
|
|
331
|
+
callee: Expression$1;
|
|
332
|
+
optional: boolean;
|
|
333
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
334
|
+
}
|
|
335
|
+
declare type CallExpressionArgument$1 = Expression$1 | SpreadElement$1;
|
|
336
|
+
declare interface CatchClause$1 extends BaseNode$1 {
|
|
337
|
+
type: AST_NODE_TYPES$1.CatchClause;
|
|
338
|
+
body: BlockStatement$1;
|
|
339
|
+
param: BindingName$1 | null;
|
|
340
|
+
}
|
|
341
|
+
declare type ChainElement$1 = CallExpression$1 | MemberExpression$1 | TSNonNullExpression$1;
|
|
342
|
+
declare interface ChainExpression$1 extends BaseNode$1 {
|
|
343
|
+
type: AST_NODE_TYPES$1.ChainExpression;
|
|
344
|
+
expression: ChainElement$1;
|
|
345
|
+
}
|
|
346
|
+
declare interface ClassBase$1 extends BaseNode$1 {
|
|
347
|
+
/**
|
|
348
|
+
* Whether the class is an abstract class.
|
|
349
|
+
* @example
|
|
350
|
+
* ```ts
|
|
351
|
+
* abstract class Foo {}
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
abstract: boolean;
|
|
355
|
+
/**
|
|
356
|
+
* The class body.
|
|
357
|
+
*/
|
|
358
|
+
body: ClassBody$1;
|
|
359
|
+
/**
|
|
360
|
+
* Whether the class has been `declare`d:
|
|
361
|
+
* @example
|
|
362
|
+
* ```ts
|
|
363
|
+
* declare class Foo {}
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
declare: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* The decorators declared for the class.
|
|
369
|
+
* @example
|
|
370
|
+
* ```ts
|
|
371
|
+
* @deco
|
|
372
|
+
* class Foo {}
|
|
373
|
+
* ```
|
|
374
|
+
*/
|
|
375
|
+
decorators: Decorator$1[];
|
|
376
|
+
/**
|
|
377
|
+
* The class's name.
|
|
378
|
+
* - For a `ClassExpression` this may be `null` if the name is omitted.
|
|
379
|
+
* - For a `ClassDeclaration` this may be `null` if and only if the parent is
|
|
380
|
+
* an `ExportDefaultDeclaration`.
|
|
381
|
+
*/
|
|
382
|
+
id: Identifier$1 | null;
|
|
383
|
+
/**
|
|
384
|
+
* The implemented interfaces for the class.
|
|
385
|
+
*/
|
|
386
|
+
implements: TSClassImplements$1[];
|
|
387
|
+
/**
|
|
388
|
+
* The super class this class extends.
|
|
389
|
+
*/
|
|
390
|
+
superClass: LeftHandSideExpression$1 | null;
|
|
391
|
+
/**
|
|
392
|
+
* The generic type parameters passed to the superClass.
|
|
393
|
+
*/
|
|
394
|
+
superTypeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
395
|
+
/**
|
|
396
|
+
* The generic type parameters declared for the class.
|
|
397
|
+
*/
|
|
398
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
399
|
+
}
|
|
400
|
+
declare interface ClassBody$1 extends BaseNode$1 {
|
|
401
|
+
type: AST_NODE_TYPES$1.ClassBody;
|
|
402
|
+
body: ClassElement$1[];
|
|
403
|
+
}
|
|
404
|
+
declare type ClassDeclaration$1 = ClassDeclarationWithName$1 | ClassDeclarationWithOptionalName$1;
|
|
405
|
+
declare interface ClassDeclarationBase$1 extends ClassBase$1 {
|
|
406
|
+
type: AST_NODE_TYPES$1.ClassDeclaration;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* A normal class declaration:
|
|
410
|
+
* ```
|
|
411
|
+
* class A {}
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
declare interface ClassDeclarationWithName$1 extends ClassDeclarationBase$1 {
|
|
415
|
+
id: Identifier$1;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Default-exported class declarations have optional names:
|
|
419
|
+
* ```
|
|
420
|
+
* export default class {}
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
declare interface ClassDeclarationWithOptionalName$1 extends ClassDeclarationBase$1 {
|
|
424
|
+
id: Identifier$1 | null;
|
|
425
|
+
}
|
|
426
|
+
declare type ClassElement$1 = AccessorProperty$1 | MethodDefinition$1 | PropertyDefinition$1 | StaticBlock$1 | TSAbstractAccessorProperty$1 | TSAbstractMethodDefinition$1 | TSAbstractPropertyDefinition$1 | TSIndexSignature$1;
|
|
427
|
+
declare interface ClassExpression$1 extends ClassBase$1 {
|
|
428
|
+
type: AST_NODE_TYPES$1.ClassExpression;
|
|
429
|
+
abstract: false;
|
|
430
|
+
declare: false;
|
|
431
|
+
}
|
|
432
|
+
declare interface ClassMethodDefinitionNonComputedNameBase$1 extends MethodDefinitionBase$1 {
|
|
433
|
+
computed: false;
|
|
434
|
+
key: ClassPropertyNameNonComputed$1;
|
|
435
|
+
}
|
|
436
|
+
declare interface ClassPropertyDefinitionNonComputedNameBase$1 extends PropertyDefinitionBase$1 {
|
|
437
|
+
computed: false;
|
|
438
|
+
key: ClassPropertyNameNonComputed$1;
|
|
439
|
+
}
|
|
440
|
+
declare type ClassPropertyNameNonComputed$1 = PrivateIdentifier$1 | PropertyNameNonComputed$1;
|
|
441
|
+
declare type Comment$1 = BlockComment$1 | LineComment$1;
|
|
442
|
+
declare interface ConditionalExpression$1 extends BaseNode$1 {
|
|
443
|
+
type: AST_NODE_TYPES$1.ConditionalExpression;
|
|
444
|
+
alternate: Expression$1;
|
|
445
|
+
consequent: Expression$1;
|
|
446
|
+
test: Expression$1;
|
|
447
|
+
}
|
|
448
|
+
declare interface ConstDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
|
|
449
|
+
/**
|
|
450
|
+
* In a `declare const` declaration, the declarators may have initializers, but
|
|
451
|
+
* not definite assignment assertions. Each declarator cannot have both an
|
|
452
|
+
* initializer and a type annotation.
|
|
453
|
+
*
|
|
454
|
+
* Even if the declaration has no `declare`, it may still be ambient and have
|
|
455
|
+
* no initializer.
|
|
456
|
+
*/
|
|
457
|
+
declarations: VariableDeclaratorMaybeInit$1[];
|
|
458
|
+
kind: 'const';
|
|
459
|
+
}
|
|
460
|
+
declare interface ContinueStatement$1 extends BaseNode$1 {
|
|
461
|
+
type: AST_NODE_TYPES$1.ContinueStatement;
|
|
462
|
+
label: Identifier$1 | null;
|
|
463
|
+
}
|
|
464
|
+
declare interface DebuggerStatement$1 extends BaseNode$1 {
|
|
465
|
+
type: AST_NODE_TYPES$1.DebuggerStatement;
|
|
466
|
+
}
|
|
467
|
+
declare interface Decorator$1 extends BaseNode$1 {
|
|
468
|
+
type: AST_NODE_TYPES$1.Decorator;
|
|
469
|
+
expression: LeftHandSideExpression$1;
|
|
470
|
+
}
|
|
471
|
+
declare type DefaultExportDeclarations$1 = ClassDeclarationWithOptionalName$1 | Expression$1 | FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1;
|
|
472
|
+
declare type DestructuringPattern$1 = ArrayPattern$1 | AssignmentPattern$1 | Identifier$1 | MemberExpression$1 | ObjectPattern$1 | RestElement$1;
|
|
473
|
+
declare interface DoWhileStatement$1 extends BaseNode$1 {
|
|
474
|
+
type: AST_NODE_TYPES$1.DoWhileStatement;
|
|
475
|
+
body: Statement$1;
|
|
476
|
+
test: Expression$1;
|
|
477
|
+
}
|
|
478
|
+
declare interface EmptyStatement$1 extends BaseNode$1 {
|
|
479
|
+
type: AST_NODE_TYPES$1.EmptyStatement;
|
|
480
|
+
}
|
|
481
|
+
declare type EntityName$1 = Identifier$1 | ThisExpression$1 | TSQualifiedName$1;
|
|
482
|
+
declare interface ExportAllDeclaration$1 extends BaseNode$1 {
|
|
483
|
+
type: AST_NODE_TYPES$1.ExportAllDeclaration;
|
|
484
|
+
/**
|
|
485
|
+
* The assertions declared for the export.
|
|
486
|
+
* @example
|
|
487
|
+
* ```ts
|
|
488
|
+
* export * from 'mod' assert \{ type: 'json' \};
|
|
489
|
+
* ```
|
|
490
|
+
* @deprecated Replaced with {@link `attributes`}.
|
|
491
|
+
*/
|
|
492
|
+
assertions: ImportAttribute$1[];
|
|
493
|
+
/**
|
|
494
|
+
* The attributes declared for the export.
|
|
495
|
+
* @example
|
|
496
|
+
* ```ts
|
|
497
|
+
* export * from 'mod' with \{ type: 'json' \};
|
|
498
|
+
* ```
|
|
499
|
+
*/
|
|
500
|
+
attributes: ImportAttribute$1[];
|
|
501
|
+
/**
|
|
502
|
+
* The name for the exported items (`as X`). `null` if no name is assigned.
|
|
503
|
+
*/
|
|
504
|
+
exported: Identifier$1 | null;
|
|
505
|
+
/**
|
|
506
|
+
* The kind of the export.
|
|
507
|
+
*/
|
|
508
|
+
exportKind: ExportKind$1;
|
|
509
|
+
/**
|
|
510
|
+
* The source module being exported from.
|
|
511
|
+
*/
|
|
512
|
+
source: StringLiteral$1;
|
|
513
|
+
}
|
|
514
|
+
declare type ExportAndImportKind$1 = 'type' | 'value';
|
|
515
|
+
declare interface ExportDefaultDeclaration$1 extends BaseNode$1 {
|
|
516
|
+
type: AST_NODE_TYPES$1.ExportDefaultDeclaration;
|
|
517
|
+
/**
|
|
518
|
+
* The declaration being exported.
|
|
519
|
+
*/
|
|
520
|
+
declaration: DefaultExportDeclarations$1;
|
|
521
|
+
/**
|
|
522
|
+
* The kind of the export. Always `value` for default exports.
|
|
523
|
+
*/
|
|
524
|
+
exportKind: 'value';
|
|
525
|
+
}
|
|
526
|
+
declare type ExportKind$1 = ExportAndImportKind$1;
|
|
527
|
+
declare type ExportNamedDeclaration$1 = ExportNamedDeclarationWithoutSourceWithMultiple$1 | ExportNamedDeclarationWithoutSourceWithSingle$1 | ExportNamedDeclarationWithSource$1;
|
|
528
|
+
declare interface ExportNamedDeclarationBase$1 extends BaseNode$1 {
|
|
529
|
+
type: AST_NODE_TYPES$1.ExportNamedDeclaration;
|
|
530
|
+
/**
|
|
531
|
+
* The assertions declared for the export.
|
|
532
|
+
* @example
|
|
533
|
+
* ```ts
|
|
534
|
+
* export { foo } from 'mod' assert \{ type: 'json' \};
|
|
535
|
+
* ```
|
|
536
|
+
* This will be an empty array if `source` is `null`
|
|
537
|
+
* @deprecated Replaced with {@link `attributes`}.
|
|
538
|
+
*/
|
|
539
|
+
assertions: ImportAttribute$1[];
|
|
540
|
+
/**
|
|
541
|
+
* The attributes declared for the export.
|
|
542
|
+
* @example
|
|
543
|
+
* ```ts
|
|
544
|
+
* export { foo } from 'mod' with \{ type: 'json' \};
|
|
545
|
+
* ```
|
|
546
|
+
* This will be an empty array if `source` is `null`
|
|
547
|
+
*/
|
|
548
|
+
attributes: ImportAttribute$1[];
|
|
549
|
+
/**
|
|
550
|
+
* The exported declaration.
|
|
551
|
+
* @example
|
|
552
|
+
* ```ts
|
|
553
|
+
* export const x = 1;
|
|
554
|
+
* ```
|
|
555
|
+
* This will be `null` if `source` is not `null`, or if there are `specifiers`
|
|
556
|
+
*/
|
|
557
|
+
declaration: NamedExportDeclarations$1 | null;
|
|
558
|
+
/**
|
|
559
|
+
* The kind of the export.
|
|
560
|
+
*/
|
|
561
|
+
exportKind: ExportKind$1;
|
|
562
|
+
/**
|
|
563
|
+
* The source module being exported from.
|
|
564
|
+
*/
|
|
565
|
+
source: StringLiteral$1 | null;
|
|
566
|
+
/**
|
|
567
|
+
* The specifiers being exported.
|
|
568
|
+
* @example
|
|
569
|
+
* ```ts
|
|
570
|
+
* export { a, b };
|
|
571
|
+
* ```
|
|
572
|
+
* This will be an empty array if `declaration` is not `null`
|
|
573
|
+
*/
|
|
574
|
+
specifiers: ExportSpecifier$1[];
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Exporting names from the current module.
|
|
578
|
+
* ```
|
|
579
|
+
* export {};
|
|
580
|
+
* export { a, b };
|
|
581
|
+
* ```
|
|
582
|
+
*/
|
|
583
|
+
declare interface ExportNamedDeclarationWithoutSourceWithMultiple$1 extends ExportNamedDeclarationBase$1 {
|
|
584
|
+
/**
|
|
585
|
+
* This will always be an empty array.
|
|
586
|
+
* @deprecated Replaced with {@link `attributes`}.
|
|
587
|
+
*/
|
|
588
|
+
assertions: ImportAttribute$1[];
|
|
589
|
+
/**
|
|
590
|
+
* This will always be an empty array.
|
|
591
|
+
*/
|
|
592
|
+
attributes: ImportAttribute$1[];
|
|
593
|
+
declaration: null;
|
|
594
|
+
source: null;
|
|
595
|
+
specifiers: ExportSpecifierWithIdentifierLocal$1[];
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Exporting a single named declaration.
|
|
599
|
+
* ```
|
|
600
|
+
* export const x = 1;
|
|
601
|
+
* ```
|
|
602
|
+
*/
|
|
603
|
+
declare interface ExportNamedDeclarationWithoutSourceWithSingle$1 extends ExportNamedDeclarationBase$1 {
|
|
604
|
+
/**
|
|
605
|
+
* This will always be an empty array.
|
|
606
|
+
* @deprecated Replaced with {@link `attributes`}.
|
|
607
|
+
*/
|
|
608
|
+
assertions: ImportAttribute$1[];
|
|
609
|
+
/**
|
|
610
|
+
* This will always be an empty array.
|
|
611
|
+
*/
|
|
612
|
+
attributes: ImportAttribute$1[];
|
|
613
|
+
declaration: NamedExportDeclarations$1;
|
|
614
|
+
source: null;
|
|
615
|
+
/**
|
|
616
|
+
* This will always be an empty array.
|
|
617
|
+
*/
|
|
618
|
+
specifiers: ExportSpecifierWithIdentifierLocal$1[];
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Export names from another module.
|
|
622
|
+
* ```
|
|
623
|
+
* export { a, b } from 'mod';
|
|
624
|
+
* ```
|
|
625
|
+
*/
|
|
626
|
+
declare interface ExportNamedDeclarationWithSource$1 extends ExportNamedDeclarationBase$1 {
|
|
627
|
+
declaration: null;
|
|
628
|
+
source: StringLiteral$1;
|
|
629
|
+
}
|
|
630
|
+
declare type ExportSpecifier$1 = ExportSpecifierWithIdentifierLocal$1 | ExportSpecifierWithStringOrLiteralLocal$1;
|
|
631
|
+
declare interface ExportSpecifierBase$1 extends BaseNode$1 {
|
|
632
|
+
type: AST_NODE_TYPES$1.ExportSpecifier;
|
|
633
|
+
exported: Identifier$1 | StringLiteral$1;
|
|
634
|
+
exportKind: ExportKind$1;
|
|
635
|
+
local: Identifier$1 | StringLiteral$1;
|
|
636
|
+
}
|
|
637
|
+
declare interface ExportSpecifierWithIdentifierLocal$1 extends ExportSpecifierBase$1 {
|
|
638
|
+
local: Identifier$1;
|
|
639
|
+
}
|
|
640
|
+
declare interface ExportSpecifierWithStringOrLiteralLocal$1 extends ExportSpecifierBase$1 {
|
|
641
|
+
local: Identifier$1 | StringLiteral$1;
|
|
642
|
+
}
|
|
643
|
+
declare type Expression$1 = ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AwaitExpression$1 | BinaryExpression$1 | CallExpression$1 | ChainExpression$1 | ClassExpression$1 | ConditionalExpression$1 | FunctionExpression$1 | Identifier$1 | ImportExpression$1 | JSXElement$1 | JSXFragment$1 | LiteralExpression$1 | LogicalExpression$1 | MemberExpression$1 | MetaProperty$1 | NewExpression$1 | ObjectExpression$1 | ObjectPattern$1 | SequenceExpression$1 | Super$1 | TaggedTemplateExpression$1 | TemplateLiteral$1 | ThisExpression$1 | TSAsExpression$1 | TSInstantiationExpression$1 | TSNonNullExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | UnaryExpression$1 | UpdateExpression$1 | YieldExpression$1;
|
|
644
|
+
declare interface ExpressionStatement$1 extends BaseNode$1 {
|
|
645
|
+
type: AST_NODE_TYPES$1.ExpressionStatement;
|
|
646
|
+
directive: string | undefined;
|
|
647
|
+
expression: Expression$1;
|
|
648
|
+
}
|
|
649
|
+
declare type ForInitialiser$1 = Expression$1 | LetOrConstOrVarDeclaration$1;
|
|
650
|
+
declare interface ForInStatement$1 extends BaseNode$1 {
|
|
651
|
+
type: AST_NODE_TYPES$1.ForInStatement;
|
|
652
|
+
body: Statement$1;
|
|
653
|
+
left: ForInitialiser$1;
|
|
654
|
+
right: Expression$1;
|
|
655
|
+
}
|
|
656
|
+
declare type ForOfInitialiser$1 = Expression$1 | LetOrConstOrVarDeclaration$1 | UsingInForOfDeclaration$1;
|
|
657
|
+
declare interface ForOfStatement$1 extends BaseNode$1 {
|
|
658
|
+
type: AST_NODE_TYPES$1.ForOfStatement;
|
|
659
|
+
await: boolean;
|
|
660
|
+
body: Statement$1;
|
|
661
|
+
left: ForOfInitialiser$1;
|
|
662
|
+
right: Expression$1;
|
|
663
|
+
}
|
|
664
|
+
declare interface ForStatement$1 extends BaseNode$1 {
|
|
665
|
+
type: AST_NODE_TYPES$1.ForStatement;
|
|
666
|
+
body: Statement$1;
|
|
667
|
+
init: Expression$1 | ForInitialiser$1 | null;
|
|
668
|
+
test: Expression$1 | null;
|
|
669
|
+
update: Expression$1 | null;
|
|
670
|
+
}
|
|
671
|
+
declare interface FunctionBase$1 extends BaseNode$1 {
|
|
672
|
+
/**
|
|
673
|
+
* Whether the function is async:
|
|
674
|
+
* ```
|
|
675
|
+
* async function foo() {}
|
|
676
|
+
* const x = async function () {}
|
|
677
|
+
* const x = async () => {}
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
680
|
+
async: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* The body of the function.
|
|
683
|
+
* - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`.
|
|
684
|
+
* - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement`.
|
|
685
|
+
* - For a `TSDeclareFunction` this is always `undefined`.
|
|
686
|
+
* - For a `TSEmptyBodyFunctionExpression` this is always `null`.
|
|
687
|
+
*/
|
|
688
|
+
body: BlockStatement$1 | Expression$1 | null | undefined;
|
|
689
|
+
/**
|
|
690
|
+
* This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`:
|
|
691
|
+
* ```
|
|
692
|
+
* declare function foo() {}
|
|
693
|
+
* ```
|
|
694
|
+
*/
|
|
695
|
+
declare: boolean;
|
|
696
|
+
/**
|
|
697
|
+
* This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body
|
|
698
|
+
* is an expression:
|
|
699
|
+
* ```
|
|
700
|
+
* (() => 1)
|
|
701
|
+
* ```
|
|
702
|
+
*/
|
|
703
|
+
expression: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Whether the function is a generator function:
|
|
706
|
+
* ```
|
|
707
|
+
* function *foo() {}
|
|
708
|
+
* const x = function *() {}
|
|
709
|
+
* ```
|
|
710
|
+
* This is always `false` for arrow functions as they cannot be generators.
|
|
711
|
+
*/
|
|
712
|
+
generator: boolean;
|
|
713
|
+
/**
|
|
714
|
+
* The function's name.
|
|
715
|
+
* - For an `ArrowFunctionExpression` this is always `null`.
|
|
716
|
+
* - For a `FunctionExpression` this may be `null` if the name is omitted.
|
|
717
|
+
* - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if
|
|
718
|
+
* and only if the parent is an `ExportDefaultDeclaration`.
|
|
719
|
+
*/
|
|
720
|
+
id: Identifier$1 | null;
|
|
721
|
+
/**
|
|
722
|
+
* The list of parameters declared for the function.
|
|
723
|
+
*/
|
|
724
|
+
params: Parameter$1[];
|
|
725
|
+
/**
|
|
726
|
+
* The return type annotation for the function.
|
|
727
|
+
*/
|
|
728
|
+
returnType: TSTypeAnnotation$1 | undefined;
|
|
729
|
+
/**
|
|
730
|
+
* The generic type parameter declaration for the function.
|
|
731
|
+
*/
|
|
732
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
733
|
+
}
|
|
734
|
+
declare type FunctionDeclaration$1 = FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1;
|
|
735
|
+
declare interface FunctionDeclarationBase$1 extends FunctionBase$1 {
|
|
736
|
+
type: AST_NODE_TYPES$1.FunctionDeclaration;
|
|
737
|
+
body: BlockStatement$1;
|
|
738
|
+
declare: false;
|
|
739
|
+
expression: false;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* A normal function declaration:
|
|
743
|
+
* ```
|
|
744
|
+
* function f() {}
|
|
745
|
+
* ```
|
|
746
|
+
*/
|
|
747
|
+
declare interface FunctionDeclarationWithName$1 extends FunctionDeclarationBase$1 {
|
|
748
|
+
id: Identifier$1;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Default-exported function declarations have optional names:
|
|
752
|
+
* ```
|
|
753
|
+
* export default function () {}
|
|
754
|
+
* ```
|
|
755
|
+
*/
|
|
756
|
+
declare interface FunctionDeclarationWithOptionalName$1 extends FunctionDeclarationBase$1 {
|
|
757
|
+
id: Identifier$1 | null;
|
|
758
|
+
}
|
|
759
|
+
declare interface FunctionExpression$1 extends FunctionBase$1 {
|
|
760
|
+
type: AST_NODE_TYPES$1.FunctionExpression;
|
|
761
|
+
body: BlockStatement$1;
|
|
762
|
+
expression: false;
|
|
763
|
+
}
|
|
764
|
+
declare type FunctionLike$1 = ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1;
|
|
765
|
+
declare interface Identifier$1 extends BaseNode$1 {
|
|
766
|
+
type: AST_NODE_TYPES$1.Identifier;
|
|
767
|
+
decorators: Decorator$1[];
|
|
768
|
+
name: string;
|
|
769
|
+
optional: boolean;
|
|
770
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
771
|
+
}
|
|
772
|
+
declare interface IdentifierToken$1 extends BaseToken$1 {
|
|
773
|
+
type: AST_TOKEN_TYPES$1.Identifier;
|
|
774
|
+
}
|
|
775
|
+
declare interface IfStatement$1 extends BaseNode$1 {
|
|
776
|
+
type: AST_NODE_TYPES$1.IfStatement;
|
|
777
|
+
alternate: Statement$1 | null;
|
|
778
|
+
consequent: Statement$1;
|
|
779
|
+
test: Expression$1;
|
|
780
|
+
}
|
|
781
|
+
declare interface ImportAttribute$1 extends BaseNode$1 {
|
|
782
|
+
type: AST_NODE_TYPES$1.ImportAttribute;
|
|
783
|
+
key: Identifier$1 | Literal$1;
|
|
784
|
+
value: Literal$1;
|
|
785
|
+
}
|
|
786
|
+
declare type ImportClause$1 = ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1;
|
|
787
|
+
declare interface ImportDeclaration$1 extends BaseNode$1 {
|
|
788
|
+
type: AST_NODE_TYPES$1.ImportDeclaration;
|
|
789
|
+
/**
|
|
790
|
+
* The assertions declared for the export.
|
|
791
|
+
* @example
|
|
792
|
+
* ```ts
|
|
793
|
+
* import * from 'mod' assert \{ type: 'json' \};
|
|
794
|
+
* ```
|
|
795
|
+
* @deprecated Replaced with {@link `attributes`}.
|
|
796
|
+
*/
|
|
797
|
+
assertions: ImportAttribute$1[];
|
|
798
|
+
/**
|
|
799
|
+
* The attributes declared for the export.
|
|
800
|
+
* @example
|
|
801
|
+
* ```ts
|
|
802
|
+
* import * from 'mod' with \{ type: 'json' \};
|
|
803
|
+
* ```
|
|
804
|
+
*/
|
|
805
|
+
attributes: ImportAttribute$1[];
|
|
806
|
+
/**
|
|
807
|
+
* The kind of the import.
|
|
808
|
+
*/
|
|
809
|
+
importKind: ImportKind$1;
|
|
810
|
+
/**
|
|
811
|
+
* The source module being imported from.
|
|
812
|
+
*/
|
|
813
|
+
source: StringLiteral$1;
|
|
814
|
+
/**
|
|
815
|
+
* The specifiers being imported.
|
|
816
|
+
* If this is an empty array then either there are no specifiers:
|
|
817
|
+
* ```
|
|
818
|
+
* import {} from 'mod';
|
|
819
|
+
* ```
|
|
820
|
+
* Or it is a side-effect import:
|
|
821
|
+
* ```
|
|
822
|
+
* import 'mod';
|
|
823
|
+
* ```
|
|
824
|
+
*/
|
|
825
|
+
specifiers: ImportClause$1[];
|
|
826
|
+
}
|
|
827
|
+
declare interface ImportDefaultSpecifier$1 extends BaseNode$1 {
|
|
828
|
+
type: AST_NODE_TYPES$1.ImportDefaultSpecifier;
|
|
829
|
+
local: Identifier$1;
|
|
830
|
+
}
|
|
831
|
+
declare interface ImportExpression$1 extends BaseNode$1 {
|
|
832
|
+
type: AST_NODE_TYPES$1.ImportExpression;
|
|
833
|
+
/**
|
|
834
|
+
* The attributes declared for the dynamic import.
|
|
835
|
+
* @example
|
|
836
|
+
* ```ts
|
|
837
|
+
* import('mod', \{ assert: \{ type: 'json' \} \});
|
|
838
|
+
* ```
|
|
839
|
+
* @deprecated Replaced with {@link `options`}.
|
|
840
|
+
*/
|
|
841
|
+
attributes: Expression$1 | null;
|
|
842
|
+
/**
|
|
843
|
+
* The options bag declared for the dynamic import.
|
|
844
|
+
* @example
|
|
845
|
+
* ```ts
|
|
846
|
+
* import('mod', \{ assert: \{ type: 'json' \} \});
|
|
847
|
+
* ```
|
|
848
|
+
*/
|
|
849
|
+
options: Expression$1 | null;
|
|
850
|
+
source: Expression$1;
|
|
851
|
+
}
|
|
852
|
+
declare type ImportKind$1 = ExportAndImportKind$1;
|
|
853
|
+
declare interface ImportNamespaceSpecifier$1 extends BaseNode$1 {
|
|
854
|
+
type: AST_NODE_TYPES$1.ImportNamespaceSpecifier;
|
|
855
|
+
local: Identifier$1;
|
|
856
|
+
}
|
|
857
|
+
declare interface ImportSpecifier$1 extends BaseNode$1 {
|
|
858
|
+
type: AST_NODE_TYPES$1.ImportSpecifier;
|
|
859
|
+
imported: Identifier$1 | StringLiteral$1;
|
|
860
|
+
importKind: ImportKind$1;
|
|
861
|
+
local: Identifier$1;
|
|
862
|
+
}
|
|
863
|
+
declare interface JSXAttribute$1 extends BaseNode$1 {
|
|
864
|
+
type: AST_NODE_TYPES$1.JSXAttribute;
|
|
865
|
+
name: JSXIdentifier$1 | JSXNamespacedName$1;
|
|
866
|
+
value: JSXElement$1 | JSXExpression$1 | Literal$1 | null;
|
|
867
|
+
}
|
|
868
|
+
declare type JSXChild$1 = JSXElement$1 | JSXExpression$1 | JSXFragment$1 | JSXText$1;
|
|
869
|
+
declare interface JSXClosingElement$1 extends BaseNode$1 {
|
|
870
|
+
type: AST_NODE_TYPES$1.JSXClosingElement;
|
|
871
|
+
name: JSXTagNameExpression$1;
|
|
872
|
+
}
|
|
873
|
+
declare interface JSXClosingFragment$1 extends BaseNode$1 {
|
|
874
|
+
type: AST_NODE_TYPES$1.JSXClosingFragment;
|
|
875
|
+
}
|
|
876
|
+
declare interface JSXElement$1 extends BaseNode$1 {
|
|
877
|
+
type: AST_NODE_TYPES$1.JSXElement;
|
|
878
|
+
children: JSXChild$1[];
|
|
879
|
+
closingElement: JSXClosingElement$1 | null;
|
|
880
|
+
openingElement: JSXOpeningElement$1;
|
|
881
|
+
}
|
|
882
|
+
declare interface JSXEmptyExpression$1 extends BaseNode$1 {
|
|
883
|
+
type: AST_NODE_TYPES$1.JSXEmptyExpression;
|
|
884
|
+
}
|
|
885
|
+
declare type JSXExpression$1 = JSXExpressionContainer$1 | JSXSpreadChild$1;
|
|
886
|
+
declare interface JSXExpressionContainer$1 extends BaseNode$1 {
|
|
887
|
+
type: AST_NODE_TYPES$1.JSXExpressionContainer;
|
|
888
|
+
expression: Expression$1 | JSXEmptyExpression$1;
|
|
889
|
+
}
|
|
890
|
+
declare interface JSXFragment$1 extends BaseNode$1 {
|
|
891
|
+
type: AST_NODE_TYPES$1.JSXFragment;
|
|
892
|
+
children: JSXChild$1[];
|
|
893
|
+
closingFragment: JSXClosingFragment$1;
|
|
894
|
+
openingFragment: JSXOpeningFragment$1;
|
|
895
|
+
}
|
|
896
|
+
declare interface JSXIdentifier$1 extends BaseNode$1 {
|
|
897
|
+
type: AST_NODE_TYPES$1.JSXIdentifier;
|
|
898
|
+
name: string;
|
|
899
|
+
}
|
|
900
|
+
declare interface JSXIdentifierToken$1 extends BaseToken$1 {
|
|
901
|
+
type: AST_TOKEN_TYPES$1.JSXIdentifier;
|
|
902
|
+
}
|
|
903
|
+
declare interface JSXMemberExpression$1 extends BaseNode$1 {
|
|
904
|
+
type: AST_NODE_TYPES$1.JSXMemberExpression;
|
|
905
|
+
object: JSXTagNameExpression$1;
|
|
906
|
+
property: JSXIdentifier$1;
|
|
907
|
+
}
|
|
908
|
+
declare interface JSXNamespacedName$1 extends BaseNode$1 {
|
|
909
|
+
type: AST_NODE_TYPES$1.JSXNamespacedName;
|
|
910
|
+
name: JSXIdentifier$1;
|
|
911
|
+
namespace: JSXIdentifier$1;
|
|
912
|
+
}
|
|
913
|
+
declare interface JSXOpeningElement$1 extends BaseNode$1 {
|
|
914
|
+
type: AST_NODE_TYPES$1.JSXOpeningElement;
|
|
915
|
+
attributes: (JSXAttribute$1 | JSXSpreadAttribute$1)[];
|
|
916
|
+
name: JSXTagNameExpression$1;
|
|
917
|
+
selfClosing: boolean;
|
|
918
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
919
|
+
}
|
|
920
|
+
declare interface JSXOpeningFragment$1 extends BaseNode$1 {
|
|
921
|
+
type: AST_NODE_TYPES$1.JSXOpeningFragment;
|
|
922
|
+
}
|
|
923
|
+
declare interface JSXSpreadAttribute$1 extends BaseNode$1 {
|
|
924
|
+
type: AST_NODE_TYPES$1.JSXSpreadAttribute;
|
|
925
|
+
argument: Expression$1;
|
|
926
|
+
}
|
|
927
|
+
declare interface JSXSpreadChild$1 extends BaseNode$1 {
|
|
928
|
+
type: AST_NODE_TYPES$1.JSXSpreadChild;
|
|
929
|
+
expression: Expression$1 | JSXEmptyExpression$1;
|
|
930
|
+
}
|
|
931
|
+
declare type JSXTagNameExpression$1 = JSXIdentifier$1 | JSXMemberExpression$1 | JSXNamespacedName$1;
|
|
932
|
+
declare interface JSXText$1 extends BaseNode$1 {
|
|
933
|
+
type: AST_NODE_TYPES$1.JSXText;
|
|
934
|
+
raw: string;
|
|
935
|
+
value: string;
|
|
936
|
+
}
|
|
937
|
+
declare interface JSXTextToken$1 extends BaseToken$1 {
|
|
938
|
+
type: AST_TOKEN_TYPES$1.JSXText;
|
|
939
|
+
}
|
|
940
|
+
declare interface KeywordToken$1 extends BaseToken$1 {
|
|
941
|
+
type: AST_TOKEN_TYPES$1.Keyword;
|
|
942
|
+
}
|
|
943
|
+
declare interface LabeledStatement$1 extends BaseNode$1 {
|
|
944
|
+
type: AST_NODE_TYPES$1.LabeledStatement;
|
|
945
|
+
body: Statement$1;
|
|
946
|
+
label: Identifier$1;
|
|
947
|
+
}
|
|
948
|
+
declare type LeftHandSideExpression$1 = ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | CallExpression$1 | ClassExpression$1 | FunctionExpression$1 | Identifier$1 | JSXElement$1 | JSXFragment$1 | LiteralExpression$1 | MemberExpression$1 | MetaProperty$1 | ObjectExpression$1 | ObjectPattern$1 | SequenceExpression$1 | Super$1 | TaggedTemplateExpression$1 | ThisExpression$1 | TSAsExpression$1 | TSNonNullExpression$1 | TSTypeAssertion$1;
|
|
949
|
+
declare type LetOrConstOrVarDeclaration$1 = ConstDeclaration$1 | LetOrVarDeclaredDeclaration$1 | LetOrVarNonDeclaredDeclaration$1;
|
|
950
|
+
declare interface LetOrConstOrVarDeclarationBase$1 extends BaseNode$1 {
|
|
951
|
+
type: AST_NODE_TYPES$1.VariableDeclaration;
|
|
952
|
+
/**
|
|
953
|
+
* The variables declared by this declaration.
|
|
954
|
+
* Always non-empty.
|
|
955
|
+
* @example
|
|
956
|
+
* ```ts
|
|
957
|
+
* let x;
|
|
958
|
+
* let y, z;
|
|
959
|
+
* ```
|
|
960
|
+
*/
|
|
961
|
+
declarations: LetOrConstOrVarDeclarator$1[];
|
|
962
|
+
/**
|
|
963
|
+
* Whether the declaration is `declare`d
|
|
964
|
+
* @example
|
|
965
|
+
* ```ts
|
|
966
|
+
* declare const x = 1;
|
|
967
|
+
* ```
|
|
968
|
+
*/
|
|
969
|
+
declare: boolean;
|
|
970
|
+
/**
|
|
971
|
+
* The keyword used to declare the variable(s)
|
|
972
|
+
* @example
|
|
973
|
+
* ```ts
|
|
974
|
+
* const x = 1;
|
|
975
|
+
* let y = 2;
|
|
976
|
+
* var z = 3;
|
|
977
|
+
* ```
|
|
978
|
+
*/
|
|
979
|
+
kind: 'const' | 'let' | 'var';
|
|
980
|
+
}
|
|
981
|
+
declare type LetOrConstOrVarDeclarator$1 = VariableDeclaratorDefiniteAssignment$1 | VariableDeclaratorMaybeInit$1 | VariableDeclaratorNoInit$1;
|
|
982
|
+
declare interface LetOrVarDeclaredDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
|
|
983
|
+
/**
|
|
984
|
+
* In a `declare let` declaration, the declarators must not have definite assignment
|
|
985
|
+
* assertions or initializers.
|
|
986
|
+
*
|
|
987
|
+
* @example
|
|
988
|
+
* ```ts
|
|
989
|
+
* using x = 1;
|
|
990
|
+
* using y =1, z = 2;
|
|
991
|
+
* ```
|
|
992
|
+
*/
|
|
993
|
+
declarations: VariableDeclaratorNoInit$1[];
|
|
994
|
+
declare: true;
|
|
995
|
+
kind: 'let' | 'var';
|
|
996
|
+
}
|
|
997
|
+
declare interface LetOrVarNonDeclaredDeclaration$1 extends LetOrConstOrVarDeclarationBase$1 {
|
|
998
|
+
/**
|
|
999
|
+
* In a `let`/`var` declaration, the declarators may have definite assignment
|
|
1000
|
+
* assertions or initializers, but not both.
|
|
1001
|
+
*/
|
|
1002
|
+
declarations: (VariableDeclaratorDefiniteAssignment$1 | VariableDeclaratorMaybeInit$1)[];
|
|
1003
|
+
declare: false;
|
|
1004
|
+
kind: 'let' | 'var';
|
|
1005
|
+
}
|
|
1006
|
+
declare interface LineComment$1 extends BaseToken$1 {
|
|
1007
|
+
type: AST_TOKEN_TYPES$1.Line;
|
|
1008
|
+
}
|
|
1009
|
+
declare type Literal$1 = BigIntLiteral$1 | BooleanLiteral$1 | NullLiteral$1 | NumberLiteral$1 | RegExpLiteral$1 | StringLiteral$1;
|
|
1010
|
+
declare interface LiteralBase$1 extends BaseNode$1 {
|
|
1011
|
+
type: AST_NODE_TYPES$1.Literal;
|
|
1012
|
+
raw: string;
|
|
1013
|
+
value: bigint | boolean | number | string | RegExp | null;
|
|
1014
|
+
}
|
|
1015
|
+
declare type LiteralExpression$1 = Literal$1 | TemplateLiteral$1;
|
|
1016
|
+
declare interface LogicalExpression$1 extends BaseNode$1 {
|
|
1017
|
+
type: AST_NODE_TYPES$1.LogicalExpression;
|
|
1018
|
+
left: Expression$1;
|
|
1019
|
+
operator: '&&' | '??' | '||';
|
|
1020
|
+
right: Expression$1;
|
|
1021
|
+
}
|
|
1022
|
+
declare type MemberExpression$1 = MemberExpressionComputedName$1 | MemberExpressionNonComputedName$1;
|
|
1023
|
+
declare interface MemberExpressionBase$1 extends BaseNode$1 {
|
|
1024
|
+
computed: boolean;
|
|
1025
|
+
object: Expression$1;
|
|
1026
|
+
optional: boolean;
|
|
1027
|
+
property: Expression$1 | Identifier$1 | PrivateIdentifier$1;
|
|
1028
|
+
}
|
|
1029
|
+
declare interface MemberExpressionComputedName$1 extends MemberExpressionBase$1 {
|
|
1030
|
+
type: AST_NODE_TYPES$1.MemberExpression;
|
|
1031
|
+
computed: true;
|
|
1032
|
+
property: Expression$1;
|
|
1033
|
+
}
|
|
1034
|
+
declare interface MemberExpressionNonComputedName$1 extends MemberExpressionBase$1 {
|
|
1035
|
+
type: AST_NODE_TYPES$1.MemberExpression;
|
|
1036
|
+
computed: false;
|
|
1037
|
+
property: Identifier$1 | PrivateIdentifier$1;
|
|
1038
|
+
}
|
|
1039
|
+
declare interface MetaProperty$1 extends BaseNode$1 {
|
|
1040
|
+
type: AST_NODE_TYPES$1.MetaProperty;
|
|
1041
|
+
meta: Identifier$1;
|
|
1042
|
+
property: Identifier$1;
|
|
1043
|
+
}
|
|
1044
|
+
declare type MethodDefinition$1 = MethodDefinitionComputedName$1 | MethodDefinitionNonComputedName$1;
|
|
1045
|
+
/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */
|
|
1046
|
+
declare interface MethodDefinitionBase$1 extends BaseNode$1 {
|
|
1047
|
+
accessibility: Accessibility$1 | undefined;
|
|
1048
|
+
computed: boolean;
|
|
1049
|
+
decorators: Decorator$1[];
|
|
1050
|
+
key: PropertyName$1;
|
|
1051
|
+
kind: 'constructor' | 'get' | 'method' | 'set';
|
|
1052
|
+
optional: boolean;
|
|
1053
|
+
override: boolean;
|
|
1054
|
+
static: boolean;
|
|
1055
|
+
value: FunctionExpression$1 | TSEmptyBodyFunctionExpression$1;
|
|
1056
|
+
}
|
|
1057
|
+
declare interface MethodDefinitionComputedName$1 extends MethodDefinitionComputedNameBase$1 {
|
|
1058
|
+
type: AST_NODE_TYPES$1.MethodDefinition;
|
|
1059
|
+
}
|
|
1060
|
+
declare interface MethodDefinitionComputedNameBase$1 extends MethodDefinitionBase$1 {
|
|
1061
|
+
computed: true;
|
|
1062
|
+
key: PropertyNameComputed$1;
|
|
1063
|
+
}
|
|
1064
|
+
declare interface MethodDefinitionNonComputedName$1 extends ClassMethodDefinitionNonComputedNameBase$1 {
|
|
1065
|
+
type: AST_NODE_TYPES$1.MethodDefinition;
|
|
1066
|
+
}
|
|
1067
|
+
declare interface MethodDefinitionNonComputedNameBase$1 extends MethodDefinitionBase$1 {
|
|
1068
|
+
computed: false;
|
|
1069
|
+
key: PropertyNameNonComputed$1;
|
|
1070
|
+
}
|
|
1071
|
+
declare type NamedExportDeclarations$1 = ClassDeclarationWithName$1 | ClassDeclarationWithOptionalName$1 | FunctionDeclarationWithName$1 | FunctionDeclarationWithOptionalName$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSImportEqualsDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1;
|
|
1072
|
+
declare interface NewExpression$1 extends BaseNode$1 {
|
|
1073
|
+
type: AST_NODE_TYPES$1.NewExpression;
|
|
1074
|
+
arguments: CallExpressionArgument$1[];
|
|
1075
|
+
callee: Expression$1;
|
|
1076
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
1077
|
+
}
|
|
1078
|
+
declare type Node$1 = AccessorProperty$1 | ArrayExpression$1 | ArrayPattern$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AssignmentPattern$1 | AwaitExpression$1 | BinaryExpression$1 | BlockStatement$1 | BreakStatement$1 | CallExpression$1 | CatchClause$1 | ChainExpression$1 | ClassBody$1 | ClassDeclaration$1 | ClassExpression$1 | ConditionalExpression$1 | ContinueStatement$1 | DebuggerStatement$1 | Decorator$1 | DoWhileStatement$1 | EmptyStatement$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ExportSpecifier$1 | ExpressionStatement$1 | ForInStatement$1 | ForOfStatement$1 | ForStatement$1 | FunctionDeclaration$1 | FunctionExpression$1 | Identifier$1 | IfStatement$1 | ImportAttribute$1 | ImportDeclaration$1 | ImportDefaultSpecifier$1 | ImportExpression$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1 | JSXAttribute$1 | JSXClosingElement$1 | JSXClosingFragment$1 | JSXElement$1 | JSXEmptyExpression$1 | JSXExpressionContainer$1 | JSXFragment$1 | JSXIdentifier$1 | JSXMemberExpression$1 | JSXNamespacedName$1 | JSXOpeningElement$1 | JSXOpeningFragment$1 | JSXSpreadAttribute$1 | JSXSpreadChild$1 | JSXText$1 | LabeledStatement$1 | Literal$1 | LogicalExpression$1 | MemberExpression$1 | MetaProperty$1 | MethodDefinition$1 | NewExpression$1 | ObjectExpression$1 | ObjectPattern$1 | PrivateIdentifier$1 | Program$1 | Property$1 | PropertyDefinition$1 | RestElement$1 | ReturnStatement$1 | SequenceExpression$1 | SpreadElement$1 | StaticBlock$1 | Super$1 | SwitchCase$1 | SwitchStatement$1 | TaggedTemplateExpression$1 | TemplateElement$1 | TemplateLiteral$1 | ThisExpression$1 | ThrowStatement$1 | TryStatement$1 | TSAbstractAccessorProperty$1 | TSAbstractKeyword$1 | TSAbstractMethodDefinition$1 | TSAbstractPropertyDefinition$1 | TSAnyKeyword$1 | TSArrayType$1 | TSAsExpression$1 | TSAsyncKeyword$1 | TSBigIntKeyword$1 | TSBooleanKeyword$1 | TSCallSignatureDeclaration$1 | TSClassImplements$1 | TSConditionalType$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSDeclareFunction$1 | TSDeclareKeyword$1 | TSEmptyBodyFunctionExpression$1 | TSEnumBody$1 | TSEnumDeclaration$1 | TSEnumMember$1 | TSExportAssignment$1 | TSExportKeyword$1 | TSExternalModuleReference$1 | TSFunctionType$1 | TSImportEqualsDeclaration$1 | TSImportType$1 | TSIndexedAccessType$1 | TSIndexSignature$1 | TSInferType$1 | TSInstantiationExpression$1 | TSInterfaceBody$1 | TSInterfaceDeclaration$1 | TSInterfaceHeritage$1 | TSIntersectionType$1 | TSIntrinsicKeyword$1 | TSLiteralType$1 | TSMappedType$1 | TSMethodSignature$1 | TSModuleBlock$1 | TSModuleDeclaration$1 | TSNamedTupleMember$1 | TSNamespaceExportDeclaration$1 | TSNeverKeyword$1 | TSNonNullExpression$1 | TSNullKeyword$1 | TSNumberKeyword$1 | TSObjectKeyword$1 | TSOptionalType$1 | TSParameterProperty$1 | TSPrivateKeyword$1 | TSPropertySignature$1 | TSProtectedKeyword$1 | TSPublicKeyword$1 | TSQualifiedName$1 | TSReadonlyKeyword$1 | TSRestType$1 | TSSatisfiesExpression$1 | TSStaticKeyword$1 | TSStringKeyword$1 | TSSymbolKeyword$1 | TSTemplateLiteralType$1 | TSThisType$1 | TSTupleType$1 | TSTypeAliasDeclaration$1 | TSTypeAnnotation$1 | TSTypeAssertion$1 | TSTypeLiteral$1 | TSTypeOperator$1 | TSTypeParameter$1 | TSTypeParameterDeclaration$1 | TSTypeParameterInstantiation$1 | TSTypePredicate$1 | TSTypeQuery$1 | TSTypeReference$1 | TSUndefinedKeyword$1 | TSUnionType$1 | TSUnknownKeyword$1 | TSVoidKeyword$1 | UnaryExpression$1 | UpdateExpression$1 | VariableDeclaration$1 | VariableDeclarator$1 | WhileStatement$1 | WithStatement$1 | YieldExpression$1;
|
|
1079
|
+
declare interface NodeOrTokenData$1 {
|
|
1080
|
+
type: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* The source location information of the node.
|
|
1083
|
+
*
|
|
1084
|
+
* The loc property is defined as nullable by ESTree, but ESLint requires this property.
|
|
1085
|
+
*/
|
|
1086
|
+
loc: SourceLocation$1;
|
|
1087
|
+
range: Range$1;
|
|
1088
|
+
}
|
|
1089
|
+
declare interface NullLiteral$1 extends LiteralBase$1 {
|
|
1090
|
+
raw: 'null';
|
|
1091
|
+
value: null;
|
|
1092
|
+
}
|
|
1093
|
+
declare interface NullToken$1 extends BaseToken$1 {
|
|
1094
|
+
type: AST_TOKEN_TYPES$1.Null;
|
|
1095
|
+
}
|
|
1096
|
+
declare interface NumberLiteral$1 extends LiteralBase$1 {
|
|
1097
|
+
value: number;
|
|
1098
|
+
}
|
|
1099
|
+
declare interface NumericToken$1 extends BaseToken$1 {
|
|
1100
|
+
type: AST_TOKEN_TYPES$1.Numeric;
|
|
1101
|
+
}
|
|
1102
|
+
declare interface ObjectExpression$1 extends BaseNode$1 {
|
|
1103
|
+
type: AST_NODE_TYPES$1.ObjectExpression;
|
|
1104
|
+
properties: ObjectLiteralElement$1[];
|
|
1105
|
+
}
|
|
1106
|
+
declare type ObjectLiteralElement$1 = Property$1 | SpreadElement$1;
|
|
1107
|
+
declare interface ObjectPattern$1 extends BaseNode$1 {
|
|
1108
|
+
type: AST_NODE_TYPES$1.ObjectPattern;
|
|
1109
|
+
decorators: Decorator$1[];
|
|
1110
|
+
optional: boolean;
|
|
1111
|
+
properties: (Property$1 | RestElement$1)[];
|
|
1112
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
1113
|
+
}
|
|
1114
|
+
declare type Parameter$1 = ArrayPattern$1 | AssignmentPattern$1 | Identifier$1 | ObjectPattern$1 | RestElement$1 | TSParameterProperty$1;
|
|
1115
|
+
declare type ParameterPropertyParameter$1 = (AssignmentPattern$1 & {
|
|
1116
|
+
left: Identifier$1;
|
|
1117
|
+
}) | Identifier$1;
|
|
1118
|
+
declare interface Position$1 {
|
|
1119
|
+
/**
|
|
1120
|
+
* Column number on the line (0-indexed)
|
|
1121
|
+
*/
|
|
1122
|
+
column: number;
|
|
1123
|
+
/**
|
|
1124
|
+
* Line number (1-indexed)
|
|
1125
|
+
*/
|
|
1126
|
+
line: number;
|
|
1127
|
+
}
|
|
1128
|
+
declare interface PrivateIdentifier$1 extends BaseNode$1 {
|
|
1129
|
+
type: AST_NODE_TYPES$1.PrivateIdentifier;
|
|
1130
|
+
name: string;
|
|
1131
|
+
}
|
|
1132
|
+
declare interface PrivateIdentifierToken$1 extends BaseToken$1 {
|
|
1133
|
+
type: AST_TOKEN_TYPES$1.PrivateIdentifier;
|
|
1134
|
+
}
|
|
1135
|
+
declare interface PrivateInExpression$1 extends BaseNode$1 {
|
|
1136
|
+
type: AST_NODE_TYPES$1.BinaryExpression;
|
|
1137
|
+
left: PrivateIdentifier$1;
|
|
1138
|
+
operator: 'in';
|
|
1139
|
+
right: Expression$1;
|
|
1140
|
+
}
|
|
1141
|
+
declare interface Program$1 extends NodeOrTokenData$1 {
|
|
1142
|
+
type: AST_NODE_TYPES$1.Program;
|
|
1143
|
+
body: ProgramStatement$1[];
|
|
1144
|
+
comments: Comment$1[] | undefined;
|
|
1145
|
+
sourceType: 'module' | 'script';
|
|
1146
|
+
tokens: Token$1[] | undefined;
|
|
1147
|
+
}
|
|
1148
|
+
declare type ProgramStatement$1 = ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1 | Statement$1 | TSImportEqualsDeclaration$1 | TSNamespaceExportDeclaration$1;
|
|
1149
|
+
declare type Property$1 = PropertyComputedName$1 | PropertyNonComputedName$1;
|
|
1150
|
+
declare interface PropertyBase$1 extends BaseNode$1 {
|
|
1151
|
+
type: AST_NODE_TYPES$1.Property;
|
|
1152
|
+
computed: boolean;
|
|
1153
|
+
key: PropertyName$1;
|
|
1154
|
+
kind: 'get' | 'init' | 'set';
|
|
1155
|
+
method: boolean;
|
|
1156
|
+
optional: boolean;
|
|
1157
|
+
shorthand: boolean;
|
|
1158
|
+
value: AssignmentPattern$1 | BindingName$1 | Expression$1 | TSEmptyBodyFunctionExpression$1;
|
|
1159
|
+
}
|
|
1160
|
+
declare interface PropertyComputedName$1 extends PropertyBase$1 {
|
|
1161
|
+
computed: true;
|
|
1162
|
+
key: PropertyNameComputed$1;
|
|
1163
|
+
}
|
|
1164
|
+
declare type PropertyDefinition$1 = PropertyDefinitionComputedName$1 | PropertyDefinitionNonComputedName$1;
|
|
1165
|
+
declare interface PropertyDefinitionBase$1 extends BaseNode$1 {
|
|
1166
|
+
accessibility: Accessibility$1 | undefined;
|
|
1167
|
+
computed: boolean;
|
|
1168
|
+
declare: boolean;
|
|
1169
|
+
decorators: Decorator$1[];
|
|
1170
|
+
definite: boolean;
|
|
1171
|
+
key: PropertyName$1;
|
|
1172
|
+
optional: boolean;
|
|
1173
|
+
override: boolean;
|
|
1174
|
+
readonly: boolean;
|
|
1175
|
+
static: boolean;
|
|
1176
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
1177
|
+
value: Expression$1 | null;
|
|
1178
|
+
}
|
|
1179
|
+
declare interface PropertyDefinitionComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
|
|
1180
|
+
type: AST_NODE_TYPES$1.PropertyDefinition;
|
|
1181
|
+
}
|
|
1182
|
+
declare interface PropertyDefinitionComputedNameBase$1 extends PropertyDefinitionBase$1 {
|
|
1183
|
+
computed: true;
|
|
1184
|
+
key: PropertyNameComputed$1;
|
|
1185
|
+
}
|
|
1186
|
+
declare interface PropertyDefinitionNonComputedName$1 extends ClassPropertyDefinitionNonComputedNameBase$1 {
|
|
1187
|
+
type: AST_NODE_TYPES$1.PropertyDefinition;
|
|
1188
|
+
}
|
|
1189
|
+
declare interface PropertyDefinitionNonComputedNameBase$1 extends PropertyDefinitionBase$1 {
|
|
1190
|
+
computed: false;
|
|
1191
|
+
key: PropertyNameNonComputed$1;
|
|
1192
|
+
}
|
|
1193
|
+
declare type PropertyName$1 = ClassPropertyNameNonComputed$1 | PropertyNameComputed$1 | PropertyNameNonComputed$1;
|
|
1194
|
+
declare type PropertyNameComputed$1 = Expression$1;
|
|
1195
|
+
declare type PropertyNameNonComputed$1 = Identifier$1 | NumberLiteral$1 | StringLiteral$1;
|
|
1196
|
+
declare interface PropertyNonComputedName$1 extends PropertyBase$1 {
|
|
1197
|
+
computed: false;
|
|
1198
|
+
key: PropertyNameNonComputed$1;
|
|
1199
|
+
}
|
|
1200
|
+
declare interface PunctuatorToken$1 extends BaseToken$1 {
|
|
1201
|
+
type: AST_TOKEN_TYPES$1.Punctuator;
|
|
1202
|
+
value: ValueOf$1<PunctuatorTokenToText$1>;
|
|
1203
|
+
}
|
|
1204
|
+
declare interface PunctuatorTokenToText$1 extends AssignmentOperatorToText$1 {
|
|
1205
|
+
[SyntaxKind.AmpersandAmpersandToken]: '&&';
|
|
1206
|
+
[SyntaxKind.AmpersandToken]: '&';
|
|
1207
|
+
[SyntaxKind.AsteriskAsteriskToken]: '**';
|
|
1208
|
+
[SyntaxKind.AsteriskToken]: '*';
|
|
1209
|
+
[SyntaxKind.AtToken]: '@';
|
|
1210
|
+
[SyntaxKind.BacktickToken]: '`';
|
|
1211
|
+
[SyntaxKind.BarBarToken]: '||';
|
|
1212
|
+
[SyntaxKind.BarToken]: '|';
|
|
1213
|
+
[SyntaxKind.CaretToken]: '^';
|
|
1214
|
+
[SyntaxKind.CloseBraceToken]: '}';
|
|
1215
|
+
[SyntaxKind.CloseBracketToken]: ']';
|
|
1216
|
+
[SyntaxKind.CloseParenToken]: ')';
|
|
1217
|
+
[SyntaxKind.ColonToken]: ':';
|
|
1218
|
+
[SyntaxKind.CommaToken]: ',';
|
|
1219
|
+
[SyntaxKind.DotDotDotToken]: '...';
|
|
1220
|
+
[SyntaxKind.DotToken]: '.';
|
|
1221
|
+
[SyntaxKind.EqualsEqualsEqualsToken]: '===';
|
|
1222
|
+
[SyntaxKind.EqualsEqualsToken]: '==';
|
|
1223
|
+
[SyntaxKind.EqualsGreaterThanToken]: '=>';
|
|
1224
|
+
[SyntaxKind.ExclamationEqualsEqualsToken]: '!==';
|
|
1225
|
+
[SyntaxKind.ExclamationEqualsToken]: '!=';
|
|
1226
|
+
[SyntaxKind.ExclamationToken]: '!';
|
|
1227
|
+
[SyntaxKind.GreaterThanEqualsToken]: '>=';
|
|
1228
|
+
[SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>';
|
|
1229
|
+
[SyntaxKind.GreaterThanGreaterThanToken]: '>>';
|
|
1230
|
+
[SyntaxKind.GreaterThanToken]: '>';
|
|
1231
|
+
[SyntaxKind.HashToken]: '#';
|
|
1232
|
+
[SyntaxKind.LessThanEqualsToken]: '<=';
|
|
1233
|
+
[SyntaxKind.LessThanLessThanToken]: '<<';
|
|
1234
|
+
[SyntaxKind.LessThanSlashToken]: '</';
|
|
1235
|
+
[SyntaxKind.LessThanToken]: '<';
|
|
1236
|
+
[SyntaxKind.MinusMinusToken]: '--';
|
|
1237
|
+
[SyntaxKind.MinusToken]: '-';
|
|
1238
|
+
[SyntaxKind.OpenBraceToken]: '{';
|
|
1239
|
+
[SyntaxKind.OpenBracketToken]: '[';
|
|
1240
|
+
[SyntaxKind.OpenParenToken]: '(';
|
|
1241
|
+
[SyntaxKind.PercentToken]: '%';
|
|
1242
|
+
[SyntaxKind.PlusPlusToken]: '++';
|
|
1243
|
+
[SyntaxKind.PlusToken]: '+';
|
|
1244
|
+
[SyntaxKind.QuestionDotToken]: '?.';
|
|
1245
|
+
[SyntaxKind.QuestionQuestionToken]: '??';
|
|
1246
|
+
[SyntaxKind.QuestionToken]: '?';
|
|
1247
|
+
[SyntaxKind.SemicolonToken]: ';';
|
|
1248
|
+
[SyntaxKind.SlashToken]: '/';
|
|
1249
|
+
[SyntaxKind.TildeToken]: '~';
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* An array of two numbers.
|
|
1253
|
+
* Both numbers are a 0-based index which is the position in the array of source code characters.
|
|
1254
|
+
* The first is the start position of the node, the second is the end position of the node.
|
|
1255
|
+
*/
|
|
1256
|
+
declare type Range$1 = [number, number];
|
|
1257
|
+
declare interface RegExpLiteral$1 extends LiteralBase$1 {
|
|
1258
|
+
regex: {
|
|
1259
|
+
flags: string;
|
|
1260
|
+
pattern: string;
|
|
1261
|
+
};
|
|
1262
|
+
value: RegExp | null;
|
|
1263
|
+
}
|
|
1264
|
+
declare interface RegularExpressionToken$1 extends BaseToken$1 {
|
|
1265
|
+
type: AST_TOKEN_TYPES$1.RegularExpression;
|
|
1266
|
+
regex: {
|
|
1267
|
+
flags: string;
|
|
1268
|
+
pattern: string;
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
declare interface RestElement$1 extends BaseNode$1 {
|
|
1272
|
+
type: AST_NODE_TYPES$1.RestElement;
|
|
1273
|
+
argument: DestructuringPattern$1;
|
|
1274
|
+
decorators: Decorator$1[];
|
|
1275
|
+
optional: boolean;
|
|
1276
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
1277
|
+
value: AssignmentPattern$1 | undefined;
|
|
1278
|
+
}
|
|
1279
|
+
declare interface ReturnStatement$1 extends BaseNode$1 {
|
|
1280
|
+
type: AST_NODE_TYPES$1.ReturnStatement;
|
|
1281
|
+
argument: Expression$1 | null;
|
|
1282
|
+
}
|
|
1283
|
+
declare interface SequenceExpression$1 extends BaseNode$1 {
|
|
1284
|
+
type: AST_NODE_TYPES$1.SequenceExpression;
|
|
1285
|
+
expressions: Expression$1[];
|
|
1286
|
+
}
|
|
1287
|
+
declare interface SourceLocation$1 {
|
|
1288
|
+
/**
|
|
1289
|
+
* The position of the first character after the parsed source region
|
|
1290
|
+
*/
|
|
1291
|
+
end: Position$1;
|
|
1292
|
+
/**
|
|
1293
|
+
* The position of the first character of the parsed source region
|
|
1294
|
+
*/
|
|
1295
|
+
start: Position$1;
|
|
1296
|
+
}
|
|
1297
|
+
declare interface SpreadElement$1 extends BaseNode$1 {
|
|
1298
|
+
type: AST_NODE_TYPES$1.SpreadElement;
|
|
1299
|
+
argument: Expression$1;
|
|
1300
|
+
}
|
|
1301
|
+
declare type Statement$1 = BlockStatement$1 | BreakStatement$1 | ClassDeclarationWithName$1 | ContinueStatement$1 | DebuggerStatement$1 | DoWhileStatement$1 | EmptyStatement$1 | ExportAllDeclaration$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | ExpressionStatement$1 | ForInStatement$1 | ForOfStatement$1 | ForStatement$1 | FunctionDeclarationWithName$1 | IfStatement$1 | ImportDeclaration$1 | LabeledStatement$1 | ReturnStatement$1 | SwitchStatement$1 | ThrowStatement$1 | TryStatement$1 | TSDeclareFunction$1 | TSEnumDeclaration$1 | TSExportAssignment$1 | TSImportEqualsDeclaration$1 | TSInterfaceDeclaration$1 | TSModuleDeclaration$1 | TSNamespaceExportDeclaration$1 | TSTypeAliasDeclaration$1 | VariableDeclaration$1 | WhileStatement$1 | WithStatement$1;
|
|
1302
|
+
declare interface StaticBlock$1 extends BaseNode$1 {
|
|
1303
|
+
type: AST_NODE_TYPES$1.StaticBlock;
|
|
1304
|
+
body: Statement$1[];
|
|
1305
|
+
}
|
|
1306
|
+
declare interface StringLiteral$1 extends LiteralBase$1 {
|
|
1307
|
+
value: string;
|
|
1308
|
+
}
|
|
1309
|
+
declare interface StringToken$1 extends BaseToken$1 {
|
|
1310
|
+
type: AST_TOKEN_TYPES$1.String;
|
|
1311
|
+
}
|
|
1312
|
+
declare interface Super$1 extends BaseNode$1 {
|
|
1313
|
+
type: AST_NODE_TYPES$1.Super;
|
|
1314
|
+
}
|
|
1315
|
+
declare interface SwitchCase$1 extends BaseNode$1 {
|
|
1316
|
+
type: AST_NODE_TYPES$1.SwitchCase;
|
|
1317
|
+
consequent: Statement$1[];
|
|
1318
|
+
test: Expression$1 | null;
|
|
1319
|
+
}
|
|
1320
|
+
declare interface SwitchStatement$1 extends BaseNode$1 {
|
|
1321
|
+
type: AST_NODE_TYPES$1.SwitchStatement;
|
|
1322
|
+
cases: SwitchCase$1[];
|
|
1323
|
+
discriminant: Expression$1;
|
|
1324
|
+
}
|
|
1325
|
+
declare interface SymmetricBinaryExpression$1 extends BaseNode$1 {
|
|
1326
|
+
type: AST_NODE_TYPES$1.BinaryExpression;
|
|
1327
|
+
left: Expression$1;
|
|
1328
|
+
operator: ValueOf$1<BinaryOperatorToText$1>;
|
|
1329
|
+
right: Expression$1;
|
|
1330
|
+
}
|
|
1331
|
+
declare interface TaggedTemplateExpression$1 extends BaseNode$1 {
|
|
1332
|
+
type: AST_NODE_TYPES$1.TaggedTemplateExpression;
|
|
1333
|
+
quasi: TemplateLiteral$1;
|
|
1334
|
+
tag: Expression$1;
|
|
1335
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
1336
|
+
}
|
|
1337
|
+
declare interface TemplateElement$1 extends BaseNode$1 {
|
|
1338
|
+
type: AST_NODE_TYPES$1.TemplateElement;
|
|
1339
|
+
tail: boolean;
|
|
1340
|
+
value: {
|
|
1341
|
+
cooked: string;
|
|
1342
|
+
raw: string;
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
declare interface TemplateLiteral$1 extends BaseNode$1 {
|
|
1346
|
+
type: AST_NODE_TYPES$1.TemplateLiteral;
|
|
1347
|
+
expressions: Expression$1[];
|
|
1348
|
+
quasis: TemplateElement$1[];
|
|
1349
|
+
}
|
|
1350
|
+
declare interface TemplateToken$1 extends BaseToken$1 {
|
|
1351
|
+
type: AST_TOKEN_TYPES$1.Template;
|
|
1352
|
+
}
|
|
1353
|
+
declare interface ThisExpression$1 extends BaseNode$1 {
|
|
1354
|
+
type: AST_NODE_TYPES$1.ThisExpression;
|
|
1355
|
+
}
|
|
1356
|
+
declare interface ThrowStatement$1 extends BaseNode$1 {
|
|
1357
|
+
type: AST_NODE_TYPES$1.ThrowStatement;
|
|
1358
|
+
argument: Expression$1;
|
|
1359
|
+
}
|
|
1360
|
+
declare type Token$1 = BooleanToken$1 | Comment$1 | IdentifierToken$1 | JSXIdentifierToken$1 | JSXTextToken$1 | KeywordToken$1 | NullToken$1 | NumericToken$1 | PrivateIdentifierToken$1 | PunctuatorToken$1 | RegularExpressionToken$1 | StringToken$1 | TemplateToken$1;
|
|
1361
|
+
declare interface TryStatement$1 extends BaseNode$1 {
|
|
1362
|
+
type: AST_NODE_TYPES$1.TryStatement;
|
|
1363
|
+
block: BlockStatement$1;
|
|
1364
|
+
finalizer: BlockStatement$1 | null;
|
|
1365
|
+
handler: CatchClause$1 | null;
|
|
1366
|
+
}
|
|
1367
|
+
declare type TSAbstractAccessorProperty$1 = TSAbstractAccessorPropertyComputedName$1 | TSAbstractAccessorPropertyNonComputedName$1;
|
|
1368
|
+
declare interface TSAbstractAccessorPropertyComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
|
|
1369
|
+
type: AST_NODE_TYPES$1.TSAbstractAccessorProperty;
|
|
1370
|
+
value: null;
|
|
1371
|
+
}
|
|
1372
|
+
declare interface TSAbstractAccessorPropertyNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
|
|
1373
|
+
type: AST_NODE_TYPES$1.TSAbstractAccessorProperty;
|
|
1374
|
+
value: null;
|
|
1375
|
+
}
|
|
1376
|
+
declare interface TSAbstractKeyword$1 extends BaseNode$1 {
|
|
1377
|
+
type: AST_NODE_TYPES$1.TSAbstractKeyword;
|
|
1378
|
+
}
|
|
1379
|
+
declare type TSAbstractMethodDefinition$1 = TSAbstractMethodDefinitionComputedName$1 | TSAbstractMethodDefinitionNonComputedName$1;
|
|
1380
|
+
declare interface TSAbstractMethodDefinitionComputedName$1 extends MethodDefinitionComputedNameBase$1 {
|
|
1381
|
+
type: AST_NODE_TYPES$1.TSAbstractMethodDefinition;
|
|
1382
|
+
}
|
|
1383
|
+
declare interface TSAbstractMethodDefinitionNonComputedName$1 extends MethodDefinitionNonComputedNameBase$1 {
|
|
1384
|
+
type: AST_NODE_TYPES$1.TSAbstractMethodDefinition;
|
|
1385
|
+
}
|
|
1386
|
+
declare type TSAbstractPropertyDefinition$1 = TSAbstractPropertyDefinitionComputedName$1 | TSAbstractPropertyDefinitionNonComputedName$1;
|
|
1387
|
+
declare interface TSAbstractPropertyDefinitionComputedName$1 extends PropertyDefinitionComputedNameBase$1 {
|
|
1388
|
+
type: AST_NODE_TYPES$1.TSAbstractPropertyDefinition;
|
|
1389
|
+
value: null;
|
|
1390
|
+
}
|
|
1391
|
+
declare interface TSAbstractPropertyDefinitionNonComputedName$1 extends PropertyDefinitionNonComputedNameBase$1 {
|
|
1392
|
+
type: AST_NODE_TYPES$1.TSAbstractPropertyDefinition;
|
|
1393
|
+
value: null;
|
|
1394
|
+
}
|
|
1395
|
+
declare interface TSAnyKeyword$1 extends BaseNode$1 {
|
|
1396
|
+
type: AST_NODE_TYPES$1.TSAnyKeyword;
|
|
1397
|
+
}
|
|
1398
|
+
declare interface TSArrayType$1 extends BaseNode$1 {
|
|
1399
|
+
type: AST_NODE_TYPES$1.TSArrayType;
|
|
1400
|
+
elementType: TypeNode$1;
|
|
1401
|
+
}
|
|
1402
|
+
declare interface TSAsExpression$1 extends BaseNode$1 {
|
|
1403
|
+
type: AST_NODE_TYPES$1.TSAsExpression;
|
|
1404
|
+
expression: Expression$1;
|
|
1405
|
+
typeAnnotation: TypeNode$1;
|
|
1406
|
+
}
|
|
1407
|
+
declare interface TSAsyncKeyword$1 extends BaseNode$1 {
|
|
1408
|
+
type: AST_NODE_TYPES$1.TSAsyncKeyword;
|
|
1409
|
+
}
|
|
1410
|
+
declare interface TSBigIntKeyword$1 extends BaseNode$1 {
|
|
1411
|
+
type: AST_NODE_TYPES$1.TSBigIntKeyword;
|
|
1412
|
+
}
|
|
1413
|
+
declare interface TSBooleanKeyword$1 extends BaseNode$1 {
|
|
1414
|
+
type: AST_NODE_TYPES$1.TSBooleanKeyword;
|
|
1415
|
+
}
|
|
1416
|
+
declare interface TSCallSignatureDeclaration$1 extends TSFunctionSignatureBase$1 {
|
|
1417
|
+
type: AST_NODE_TYPES$1.TSCallSignatureDeclaration;
|
|
1418
|
+
}
|
|
1419
|
+
declare interface TSClassImplements$1 extends TSHeritageBase$1 {
|
|
1420
|
+
type: AST_NODE_TYPES$1.TSClassImplements;
|
|
1421
|
+
}
|
|
1422
|
+
declare interface TSConditionalType$1 extends BaseNode$1 {
|
|
1423
|
+
type: AST_NODE_TYPES$1.TSConditionalType;
|
|
1424
|
+
checkType: TypeNode$1;
|
|
1425
|
+
extendsType: TypeNode$1;
|
|
1426
|
+
falseType: TypeNode$1;
|
|
1427
|
+
trueType: TypeNode$1;
|
|
1428
|
+
}
|
|
1429
|
+
declare interface TSConstructorType$1 extends TSFunctionSignatureBase$1 {
|
|
1430
|
+
type: AST_NODE_TYPES$1.TSConstructorType;
|
|
1431
|
+
abstract: boolean;
|
|
1432
|
+
}
|
|
1433
|
+
declare interface TSConstructSignatureDeclaration$1 extends TSFunctionSignatureBase$1 {
|
|
1434
|
+
type: AST_NODE_TYPES$1.TSConstructSignatureDeclaration;
|
|
1435
|
+
}
|
|
1436
|
+
declare type TSDeclareFunction$1 = TSDeclareFunctionNoDeclare$1 | TSDeclareFunctionWithDeclare$1;
|
|
1437
|
+
declare interface TSDeclareFunctionBase$1 extends FunctionBase$1 {
|
|
1438
|
+
type: AST_NODE_TYPES$1.TSDeclareFunction;
|
|
1439
|
+
/**
|
|
1440
|
+
* TS1183: An implementation cannot be declared in ambient contexts.
|
|
1441
|
+
*/
|
|
1442
|
+
body: undefined;
|
|
1443
|
+
/**
|
|
1444
|
+
* Whether the declaration has `declare` modifier.
|
|
1445
|
+
*/
|
|
1446
|
+
declare: boolean;
|
|
1447
|
+
expression: false;
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Function declaration without the `declare` keyword:
|
|
1451
|
+
* ```
|
|
1452
|
+
* function foo(): void;
|
|
1453
|
+
* ```
|
|
1454
|
+
* This can either be an overload signature or a declaration in an ambient context
|
|
1455
|
+
* (e.g. `declare module`)
|
|
1456
|
+
*/
|
|
1457
|
+
declare interface TSDeclareFunctionNoDeclare$1 extends TSDeclareFunctionBase$1 {
|
|
1458
|
+
declare: false;
|
|
1459
|
+
/**
|
|
1460
|
+
* - TS1221: Generators are not allowed in an ambient context.
|
|
1461
|
+
* - TS1222: An overload signature cannot be declared as a generator.
|
|
1462
|
+
*/
|
|
1463
|
+
generator: false;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Function declaration with the `declare` keyword:
|
|
1467
|
+
* ```
|
|
1468
|
+
* declare function foo(): void;
|
|
1469
|
+
* ```
|
|
1470
|
+
*/
|
|
1471
|
+
declare interface TSDeclareFunctionWithDeclare$1 extends TSDeclareFunctionBase$1 {
|
|
1472
|
+
/**
|
|
1473
|
+
* TS1040: 'async' modifier cannot be used in an ambient context.
|
|
1474
|
+
*/
|
|
1475
|
+
async: false;
|
|
1476
|
+
declare: true;
|
|
1477
|
+
/**
|
|
1478
|
+
* TS1221: Generators are not allowed in an ambient context.
|
|
1479
|
+
*/
|
|
1480
|
+
generator: false;
|
|
1481
|
+
}
|
|
1482
|
+
declare interface TSDeclareKeyword$1 extends BaseNode$1 {
|
|
1483
|
+
type: AST_NODE_TYPES$1.TSDeclareKeyword;
|
|
1484
|
+
}
|
|
1485
|
+
declare interface TSEmptyBodyFunctionExpression$1 extends FunctionBase$1 {
|
|
1486
|
+
type: AST_NODE_TYPES$1.TSEmptyBodyFunctionExpression;
|
|
1487
|
+
body: null;
|
|
1488
|
+
id: null;
|
|
1489
|
+
}
|
|
1490
|
+
declare interface TSEnumBody$1 extends BaseNode$1 {
|
|
1491
|
+
type: AST_NODE_TYPES$1.TSEnumBody;
|
|
1492
|
+
members: TSEnumMember$1[];
|
|
1493
|
+
}
|
|
1494
|
+
declare interface TSEnumDeclaration$1 extends BaseNode$1 {
|
|
1495
|
+
type: AST_NODE_TYPES$1.TSEnumDeclaration;
|
|
1496
|
+
/**
|
|
1497
|
+
* The body of the enum.
|
|
1498
|
+
*/
|
|
1499
|
+
body: TSEnumBody$1;
|
|
1500
|
+
/**
|
|
1501
|
+
* Whether this is a `const` enum.
|
|
1502
|
+
* @example
|
|
1503
|
+
* ```ts
|
|
1504
|
+
* const enum Foo {}
|
|
1505
|
+
* ```
|
|
1506
|
+
*/
|
|
1507
|
+
const: boolean;
|
|
1508
|
+
/**
|
|
1509
|
+
* Whether this is a `declare`d enum.
|
|
1510
|
+
* @example
|
|
1511
|
+
* ```ts
|
|
1512
|
+
* declare enum Foo {}
|
|
1513
|
+
* ```
|
|
1514
|
+
*/
|
|
1515
|
+
declare: boolean;
|
|
1516
|
+
/**
|
|
1517
|
+
* The enum name.
|
|
1518
|
+
*/
|
|
1519
|
+
id: Identifier$1;
|
|
1520
|
+
/**
|
|
1521
|
+
* The enum members.
|
|
1522
|
+
* @deprecated Use {@link body} instead.
|
|
1523
|
+
*/
|
|
1524
|
+
members: TSEnumMember$1[];
|
|
1525
|
+
}
|
|
1526
|
+
declare interface TSEnumMember$1 extends BaseNode$1 {
|
|
1527
|
+
type: AST_NODE_TYPES$1.TSEnumMember;
|
|
1528
|
+
id: Identifier$1 | StringLiteral$1;
|
|
1529
|
+
initializer: Expression$1 | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* @deprecated the enum member is always non-computed.
|
|
1532
|
+
*/
|
|
1533
|
+
computed: boolean;
|
|
1534
|
+
}
|
|
1535
|
+
declare interface TSExportAssignment$1 extends BaseNode$1 {
|
|
1536
|
+
type: AST_NODE_TYPES$1.TSExportAssignment;
|
|
1537
|
+
expression: Expression$1;
|
|
1538
|
+
}
|
|
1539
|
+
declare interface TSExportKeyword$1 extends BaseNode$1 {
|
|
1540
|
+
type: AST_NODE_TYPES$1.TSExportKeyword;
|
|
1541
|
+
}
|
|
1542
|
+
declare interface TSExternalModuleReference$1 extends BaseNode$1 {
|
|
1543
|
+
type: AST_NODE_TYPES$1.TSExternalModuleReference;
|
|
1544
|
+
expression: StringLiteral$1;
|
|
1545
|
+
}
|
|
1546
|
+
declare interface TSFunctionSignatureBase$1 extends BaseNode$1 {
|
|
1547
|
+
params: Parameter$1[];
|
|
1548
|
+
returnType: TSTypeAnnotation$1 | undefined;
|
|
1549
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
1550
|
+
}
|
|
1551
|
+
declare interface TSFunctionType$1 extends TSFunctionSignatureBase$1 {
|
|
1552
|
+
type: AST_NODE_TYPES$1.TSFunctionType;
|
|
1553
|
+
}
|
|
1554
|
+
declare interface TSHeritageBase$1 extends BaseNode$1 {
|
|
1555
|
+
expression: Expression$1;
|
|
1556
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
1557
|
+
}
|
|
1558
|
+
declare type TSImportEqualsDeclaration$1 = TSImportEqualsNamespaceDeclaration$1 | TSImportEqualsRequireDeclaration$1;
|
|
1559
|
+
declare interface TSImportEqualsDeclarationBase$1 extends BaseNode$1 {
|
|
1560
|
+
type: AST_NODE_TYPES$1.TSImportEqualsDeclaration;
|
|
1561
|
+
/**
|
|
1562
|
+
* The locally imported name.
|
|
1563
|
+
*/
|
|
1564
|
+
id: Identifier$1;
|
|
1565
|
+
/**
|
|
1566
|
+
* The kind of the import. Always `'value'` unless `moduleReference` is a
|
|
1567
|
+
* `TSExternalModuleReference`.
|
|
1568
|
+
*/
|
|
1569
|
+
importKind: ImportKind$1;
|
|
1570
|
+
/**
|
|
1571
|
+
* The value being aliased.
|
|
1572
|
+
* @example
|
|
1573
|
+
* ```ts
|
|
1574
|
+
* import F1 = A;
|
|
1575
|
+
* import F2 = A.B.C;
|
|
1576
|
+
* import F3 = require('mod');
|
|
1577
|
+
* ```
|
|
1578
|
+
*/
|
|
1579
|
+
moduleReference: Identifier$1 | TSExternalModuleReference$1 | TSQualifiedName$1;
|
|
1580
|
+
}
|
|
1581
|
+
declare interface TSImportEqualsNamespaceDeclaration$1 extends TSImportEqualsDeclarationBase$1 {
|
|
1582
|
+
/**
|
|
1583
|
+
* The kind of the import.
|
|
1584
|
+
*/
|
|
1585
|
+
importKind: 'value';
|
|
1586
|
+
/**
|
|
1587
|
+
* The value being aliased.
|
|
1588
|
+
* ```
|
|
1589
|
+
* import F1 = A;
|
|
1590
|
+
* import F2 = A.B.C;
|
|
1591
|
+
* ```
|
|
1592
|
+
*/
|
|
1593
|
+
moduleReference: Identifier$1 | TSQualifiedName$1;
|
|
1594
|
+
}
|
|
1595
|
+
declare interface TSImportEqualsRequireDeclaration$1 extends TSImportEqualsDeclarationBase$1 {
|
|
1596
|
+
/**
|
|
1597
|
+
* The kind of the import.
|
|
1598
|
+
*/
|
|
1599
|
+
importKind: ImportKind$1;
|
|
1600
|
+
/**
|
|
1601
|
+
* The value being aliased.
|
|
1602
|
+
* ```
|
|
1603
|
+
* import F3 = require('mod');
|
|
1604
|
+
* ```
|
|
1605
|
+
*/
|
|
1606
|
+
moduleReference: TSExternalModuleReference$1;
|
|
1607
|
+
}
|
|
1608
|
+
declare interface TSImportType$1 extends BaseNode$1 {
|
|
1609
|
+
type: AST_NODE_TYPES$1.TSImportType;
|
|
1610
|
+
/** @deprecated Use {@link `source`} instead. */
|
|
1611
|
+
argument: TypeNode$1;
|
|
1612
|
+
options: ObjectExpression$1 | null;
|
|
1613
|
+
qualifier: EntityName$1 | null;
|
|
1614
|
+
source: StringLiteral$1;
|
|
1615
|
+
typeArguments: TSTypeParameterInstantiation$1 | null;
|
|
1616
|
+
}
|
|
1617
|
+
declare interface TSIndexedAccessType$1 extends BaseNode$1 {
|
|
1618
|
+
type: AST_NODE_TYPES$1.TSIndexedAccessType;
|
|
1619
|
+
indexType: TypeNode$1;
|
|
1620
|
+
objectType: TypeNode$1;
|
|
1621
|
+
}
|
|
1622
|
+
declare interface TSIndexSignature$1 extends BaseNode$1 {
|
|
1623
|
+
type: AST_NODE_TYPES$1.TSIndexSignature;
|
|
1624
|
+
accessibility: Accessibility$1 | undefined;
|
|
1625
|
+
parameters: Parameter$1[];
|
|
1626
|
+
readonly: boolean;
|
|
1627
|
+
static: boolean;
|
|
1628
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
1629
|
+
}
|
|
1630
|
+
declare interface TSInferType$1 extends BaseNode$1 {
|
|
1631
|
+
type: AST_NODE_TYPES$1.TSInferType;
|
|
1632
|
+
typeParameter: TSTypeParameter$1;
|
|
1633
|
+
}
|
|
1634
|
+
declare interface TSInstantiationExpression$1 extends BaseNode$1 {
|
|
1635
|
+
type: AST_NODE_TYPES$1.TSInstantiationExpression;
|
|
1636
|
+
expression: Expression$1;
|
|
1637
|
+
typeArguments: TSTypeParameterInstantiation$1;
|
|
1638
|
+
}
|
|
1639
|
+
declare interface TSInterfaceBody$1 extends BaseNode$1 {
|
|
1640
|
+
type: AST_NODE_TYPES$1.TSInterfaceBody;
|
|
1641
|
+
body: TypeElement$1[];
|
|
1642
|
+
}
|
|
1643
|
+
declare interface TSInterfaceDeclaration$1 extends BaseNode$1 {
|
|
1644
|
+
type: AST_NODE_TYPES$1.TSInterfaceDeclaration;
|
|
1645
|
+
/**
|
|
1646
|
+
* The body of the interface
|
|
1647
|
+
*/
|
|
1648
|
+
body: TSInterfaceBody$1;
|
|
1649
|
+
/**
|
|
1650
|
+
* Whether the interface was `declare`d
|
|
1651
|
+
*/
|
|
1652
|
+
declare: boolean;
|
|
1653
|
+
/**
|
|
1654
|
+
* The types this interface `extends`
|
|
1655
|
+
*/
|
|
1656
|
+
extends: TSInterfaceHeritage$1[];
|
|
1657
|
+
/**
|
|
1658
|
+
* The name of this interface
|
|
1659
|
+
*/
|
|
1660
|
+
id: Identifier$1;
|
|
1661
|
+
/**
|
|
1662
|
+
* The generic type parameters declared for the interface. Empty declaration
|
|
1663
|
+
* (`<>`) is different from no declaration.
|
|
1664
|
+
*/
|
|
1665
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
1666
|
+
}
|
|
1667
|
+
declare interface TSInterfaceHeritage$1 extends TSHeritageBase$1 {
|
|
1668
|
+
type: AST_NODE_TYPES$1.TSInterfaceHeritage;
|
|
1669
|
+
}
|
|
1670
|
+
declare interface TSIntersectionType$1 extends BaseNode$1 {
|
|
1671
|
+
type: AST_NODE_TYPES$1.TSIntersectionType;
|
|
1672
|
+
types: TypeNode$1[];
|
|
1673
|
+
}
|
|
1674
|
+
declare interface TSIntrinsicKeyword$1 extends BaseNode$1 {
|
|
1675
|
+
type: AST_NODE_TYPES$1.TSIntrinsicKeyword;
|
|
1676
|
+
}
|
|
1677
|
+
declare interface TSLiteralType$1 extends BaseNode$1 {
|
|
1678
|
+
type: AST_NODE_TYPES$1.TSLiteralType;
|
|
1679
|
+
literal: Exclude<LiteralExpression$1, NullLiteral$1 | RegExpLiteral$1> | UnaryExpressionMinus$1 | UnaryExpressionPlus$1;
|
|
1680
|
+
}
|
|
1681
|
+
declare interface TSMappedType$1 extends BaseNode$1 {
|
|
1682
|
+
type: AST_NODE_TYPES$1.TSMappedType;
|
|
1683
|
+
constraint: TypeNode$1;
|
|
1684
|
+
key: Identifier$1;
|
|
1685
|
+
nameType: TypeNode$1 | null;
|
|
1686
|
+
optional: boolean | '+' | '-' | undefined;
|
|
1687
|
+
readonly: boolean | '+' | '-' | undefined;
|
|
1688
|
+
typeAnnotation: TypeNode$1 | undefined;
|
|
1689
|
+
/** @deprecated Use {@link `constraint`} and {@link `key`} instead. */
|
|
1690
|
+
typeParameter: TSTypeParameter$1;
|
|
1691
|
+
}
|
|
1692
|
+
declare type TSMethodSignature$1 = TSMethodSignatureComputedName$1 | TSMethodSignatureNonComputedName$1;
|
|
1693
|
+
declare interface TSMethodSignatureBase$1 extends BaseNode$1 {
|
|
1694
|
+
type: AST_NODE_TYPES$1.TSMethodSignature;
|
|
1695
|
+
accessibility: Accessibility$1 | undefined;
|
|
1696
|
+
computed: boolean;
|
|
1697
|
+
key: PropertyName$1;
|
|
1698
|
+
kind: 'get' | 'method' | 'set';
|
|
1699
|
+
optional: boolean;
|
|
1700
|
+
params: Parameter$1[];
|
|
1701
|
+
readonly: boolean;
|
|
1702
|
+
returnType: TSTypeAnnotation$1 | undefined;
|
|
1703
|
+
static: boolean;
|
|
1704
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
1705
|
+
}
|
|
1706
|
+
declare interface TSMethodSignatureComputedName$1 extends TSMethodSignatureBase$1 {
|
|
1707
|
+
computed: true;
|
|
1708
|
+
key: PropertyNameComputed$1;
|
|
1709
|
+
}
|
|
1710
|
+
declare interface TSMethodSignatureNonComputedName$1 extends TSMethodSignatureBase$1 {
|
|
1711
|
+
computed: false;
|
|
1712
|
+
key: PropertyNameNonComputed$1;
|
|
1713
|
+
}
|
|
1714
|
+
declare interface TSModuleBlock$1 extends BaseNode$1 {
|
|
1715
|
+
type: AST_NODE_TYPES$1.TSModuleBlock;
|
|
1716
|
+
body: ProgramStatement$1[];
|
|
1717
|
+
}
|
|
1718
|
+
declare type TSModuleDeclaration$1 = TSModuleDeclarationGlobal$1 | TSModuleDeclarationModule$1 | TSModuleDeclarationNamespace$1;
|
|
1719
|
+
declare interface TSModuleDeclarationBase$1 extends BaseNode$1 {
|
|
1720
|
+
type: AST_NODE_TYPES$1.TSModuleDeclaration;
|
|
1721
|
+
/**
|
|
1722
|
+
* The body of the module.
|
|
1723
|
+
* This can only be `undefined` for the code `declare module 'mod';`
|
|
1724
|
+
*/
|
|
1725
|
+
body?: TSModuleBlock$1;
|
|
1726
|
+
/**
|
|
1727
|
+
* Whether the module is `declare`d
|
|
1728
|
+
* @example
|
|
1729
|
+
* ```ts
|
|
1730
|
+
* declare namespace F {}
|
|
1731
|
+
* ```
|
|
1732
|
+
*/
|
|
1733
|
+
declare: boolean;
|
|
1734
|
+
/**
|
|
1735
|
+
* Whether this is a global declaration
|
|
1736
|
+
* @example
|
|
1737
|
+
* ```ts
|
|
1738
|
+
* declare global {}
|
|
1739
|
+
* ```
|
|
1740
|
+
*
|
|
1741
|
+
* @deprecated Use {@link kind} instead
|
|
1742
|
+
*/
|
|
1743
|
+
global: boolean;
|
|
1744
|
+
/**
|
|
1745
|
+
* The name of the module
|
|
1746
|
+
* ```
|
|
1747
|
+
* namespace A {}
|
|
1748
|
+
* namespace A.B.C {}
|
|
1749
|
+
* module 'a' {}
|
|
1750
|
+
* ```
|
|
1751
|
+
*/
|
|
1752
|
+
id: Identifier$1 | Literal$1 | TSQualifiedName$1;
|
|
1753
|
+
/**
|
|
1754
|
+
* The keyword used to define this module declaration
|
|
1755
|
+
* @example
|
|
1756
|
+
* ```ts
|
|
1757
|
+
* namespace Foo {}
|
|
1758
|
+
* ^^^^^^^^^
|
|
1759
|
+
*
|
|
1760
|
+
* module 'foo' {}
|
|
1761
|
+
* ^^^^^^
|
|
1762
|
+
*
|
|
1763
|
+
* global {}
|
|
1764
|
+
* ^^^^^^
|
|
1765
|
+
* ```
|
|
1766
|
+
*/
|
|
1767
|
+
kind: TSModuleDeclarationKind$1;
|
|
1768
|
+
}
|
|
1769
|
+
declare interface TSModuleDeclarationGlobal$1 extends TSModuleDeclarationBase$1 {
|
|
1770
|
+
body: TSModuleBlock$1;
|
|
1771
|
+
/**
|
|
1772
|
+
* This will always be an Identifier with name `global`
|
|
1773
|
+
*/
|
|
1774
|
+
id: Identifier$1;
|
|
1775
|
+
kind: 'global';
|
|
1776
|
+
}
|
|
1777
|
+
declare type TSModuleDeclarationKind$1 = 'global' | 'module' | 'namespace';
|
|
1778
|
+
declare type TSModuleDeclarationModule$1 = TSModuleDeclarationModuleWithIdentifierId$1 | TSModuleDeclarationModuleWithStringId$1;
|
|
1779
|
+
declare interface TSModuleDeclarationModuleBase$1 extends TSModuleDeclarationBase$1 {
|
|
1780
|
+
kind: 'module';
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* The legacy module declaration, replaced with namespace declarations.
|
|
1784
|
+
* ```
|
|
1785
|
+
* module A {}
|
|
1786
|
+
* ```
|
|
1787
|
+
*/
|
|
1788
|
+
declare interface TSModuleDeclarationModuleWithIdentifierId$1 extends TSModuleDeclarationModuleBase$1 {
|
|
1789
|
+
body: TSModuleBlock$1;
|
|
1790
|
+
id: Identifier$1;
|
|
1791
|
+
kind: 'module';
|
|
1792
|
+
}
|
|
1793
|
+
declare type TSModuleDeclarationModuleWithStringId$1 = TSModuleDeclarationModuleWithStringIdDeclared$1 | TSModuleDeclarationModuleWithStringIdNotDeclared$1;
|
|
1794
|
+
/**
|
|
1795
|
+
* A string module declaration that is declared:
|
|
1796
|
+
* ```
|
|
1797
|
+
* declare module 'foo' {}
|
|
1798
|
+
* declare module 'foo';
|
|
1799
|
+
* ```
|
|
1800
|
+
*/
|
|
1801
|
+
declare interface TSModuleDeclarationModuleWithStringIdDeclared$1 extends TSModuleDeclarationModuleBase$1 {
|
|
1802
|
+
body?: TSModuleBlock$1;
|
|
1803
|
+
declare: true;
|
|
1804
|
+
id: StringLiteral$1;
|
|
1805
|
+
kind: 'module';
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* A string module declaration that is not declared:
|
|
1809
|
+
* ```
|
|
1810
|
+
* module 'foo' {}
|
|
1811
|
+
* ```
|
|
1812
|
+
*/
|
|
1813
|
+
declare interface TSModuleDeclarationModuleWithStringIdNotDeclared$1 extends TSModuleDeclarationModuleBase$1 {
|
|
1814
|
+
body: TSModuleBlock$1;
|
|
1815
|
+
declare: false;
|
|
1816
|
+
id: StringLiteral$1;
|
|
1817
|
+
kind: 'module';
|
|
1818
|
+
}
|
|
1819
|
+
declare interface TSModuleDeclarationNamespace$1 extends TSModuleDeclarationBase$1 {
|
|
1820
|
+
body: TSModuleBlock$1;
|
|
1821
|
+
id: Identifier$1 | TSQualifiedName$1;
|
|
1822
|
+
kind: 'namespace';
|
|
1823
|
+
}
|
|
1824
|
+
declare interface TSNamedTupleMember$1 extends BaseNode$1 {
|
|
1825
|
+
type: AST_NODE_TYPES$1.TSNamedTupleMember;
|
|
1826
|
+
elementType: TypeNode$1;
|
|
1827
|
+
label: Identifier$1;
|
|
1828
|
+
optional: boolean;
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* For the following declaration:
|
|
1832
|
+
* ```
|
|
1833
|
+
* export as namespace X;
|
|
1834
|
+
* ```
|
|
1835
|
+
*/
|
|
1836
|
+
declare interface TSNamespaceExportDeclaration$1 extends BaseNode$1 {
|
|
1837
|
+
type: AST_NODE_TYPES$1.TSNamespaceExportDeclaration;
|
|
1838
|
+
/**
|
|
1839
|
+
* The name of the global variable that's exported as namespace
|
|
1840
|
+
*/
|
|
1841
|
+
id: Identifier$1;
|
|
1842
|
+
}
|
|
1843
|
+
declare interface TSNeverKeyword$1 extends BaseNode$1 {
|
|
1844
|
+
type: AST_NODE_TYPES$1.TSNeverKeyword;
|
|
1845
|
+
}
|
|
1846
|
+
declare interface TSNonNullExpression$1 extends BaseNode$1 {
|
|
1847
|
+
type: AST_NODE_TYPES$1.TSNonNullExpression;
|
|
1848
|
+
expression: Expression$1;
|
|
1849
|
+
}
|
|
1850
|
+
declare interface TSNullKeyword$1 extends BaseNode$1 {
|
|
1851
|
+
type: AST_NODE_TYPES$1.TSNullKeyword;
|
|
1852
|
+
}
|
|
1853
|
+
declare interface TSNumberKeyword$1 extends BaseNode$1 {
|
|
1854
|
+
type: AST_NODE_TYPES$1.TSNumberKeyword;
|
|
1855
|
+
}
|
|
1856
|
+
declare interface TSObjectKeyword$1 extends BaseNode$1 {
|
|
1857
|
+
type: AST_NODE_TYPES$1.TSObjectKeyword;
|
|
1858
|
+
}
|
|
1859
|
+
declare interface TSOptionalType$1 extends BaseNode$1 {
|
|
1860
|
+
type: AST_NODE_TYPES$1.TSOptionalType;
|
|
1861
|
+
typeAnnotation: TypeNode$1;
|
|
1862
|
+
}
|
|
1863
|
+
declare interface TSParameterProperty$1 extends BaseNode$1 {
|
|
1864
|
+
type: AST_NODE_TYPES$1.TSParameterProperty;
|
|
1865
|
+
accessibility: Accessibility$1 | undefined;
|
|
1866
|
+
decorators: Decorator$1[];
|
|
1867
|
+
override: boolean;
|
|
1868
|
+
parameter: ParameterPropertyParameter$1;
|
|
1869
|
+
readonly: boolean;
|
|
1870
|
+
static: boolean;
|
|
1871
|
+
}
|
|
1872
|
+
declare interface TSPrivateKeyword$1 extends BaseNode$1 {
|
|
1873
|
+
type: AST_NODE_TYPES$1.TSPrivateKeyword;
|
|
1874
|
+
}
|
|
1875
|
+
declare type TSPropertySignature$1 = TSPropertySignatureComputedName$1 | TSPropertySignatureNonComputedName$1;
|
|
1876
|
+
declare interface TSPropertySignatureBase$1 extends BaseNode$1 {
|
|
1877
|
+
type: AST_NODE_TYPES$1.TSPropertySignature;
|
|
1878
|
+
accessibility: Accessibility$1 | undefined;
|
|
1879
|
+
computed: boolean;
|
|
1880
|
+
key: PropertyName$1;
|
|
1881
|
+
optional: boolean;
|
|
1882
|
+
readonly: boolean;
|
|
1883
|
+
static: boolean;
|
|
1884
|
+
typeAnnotation: TSTypeAnnotation$1 | undefined;
|
|
1885
|
+
}
|
|
1886
|
+
declare interface TSPropertySignatureComputedName$1 extends TSPropertySignatureBase$1 {
|
|
1887
|
+
computed: true;
|
|
1888
|
+
key: PropertyNameComputed$1;
|
|
1889
|
+
}
|
|
1890
|
+
declare interface TSPropertySignatureNonComputedName$1 extends TSPropertySignatureBase$1 {
|
|
1891
|
+
computed: false;
|
|
1892
|
+
key: PropertyNameNonComputed$1;
|
|
1893
|
+
}
|
|
1894
|
+
declare interface TSProtectedKeyword$1 extends BaseNode$1 {
|
|
1895
|
+
type: AST_NODE_TYPES$1.TSProtectedKeyword;
|
|
1896
|
+
}
|
|
1897
|
+
declare interface TSPublicKeyword$1 extends BaseNode$1 {
|
|
1898
|
+
type: AST_NODE_TYPES$1.TSPublicKeyword;
|
|
1899
|
+
}
|
|
1900
|
+
declare interface TSQualifiedName$1 extends BaseNode$1 {
|
|
1901
|
+
type: AST_NODE_TYPES$1.TSQualifiedName;
|
|
1902
|
+
left: EntityName$1;
|
|
1903
|
+
right: Identifier$1;
|
|
1904
|
+
}
|
|
1905
|
+
declare interface TSReadonlyKeyword$1 extends BaseNode$1 {
|
|
1906
|
+
type: AST_NODE_TYPES$1.TSReadonlyKeyword;
|
|
1907
|
+
}
|
|
1908
|
+
declare interface TSRestType$1 extends BaseNode$1 {
|
|
1909
|
+
type: AST_NODE_TYPES$1.TSRestType;
|
|
1910
|
+
typeAnnotation: TypeNode$1;
|
|
1911
|
+
}
|
|
1912
|
+
declare interface TSSatisfiesExpression$1 extends BaseNode$1 {
|
|
1913
|
+
type: AST_NODE_TYPES$1.TSSatisfiesExpression;
|
|
1914
|
+
expression: Expression$1;
|
|
1915
|
+
typeAnnotation: TypeNode$1;
|
|
1916
|
+
}
|
|
1917
|
+
declare interface TSStaticKeyword$1 extends BaseNode$1 {
|
|
1918
|
+
type: AST_NODE_TYPES$1.TSStaticKeyword;
|
|
1919
|
+
}
|
|
1920
|
+
declare interface TSStringKeyword$1 extends BaseNode$1 {
|
|
1921
|
+
type: AST_NODE_TYPES$1.TSStringKeyword;
|
|
1922
|
+
}
|
|
1923
|
+
declare interface TSSymbolKeyword$1 extends BaseNode$1 {
|
|
1924
|
+
type: AST_NODE_TYPES$1.TSSymbolKeyword;
|
|
1925
|
+
}
|
|
1926
|
+
declare interface TSTemplateLiteralType$1 extends BaseNode$1 {
|
|
1927
|
+
type: AST_NODE_TYPES$1.TSTemplateLiteralType;
|
|
1928
|
+
quasis: TemplateElement$1[];
|
|
1929
|
+
types: TypeNode$1[];
|
|
1930
|
+
}
|
|
1931
|
+
declare interface TSThisType$1 extends BaseNode$1 {
|
|
1932
|
+
type: AST_NODE_TYPES$1.TSThisType;
|
|
1933
|
+
}
|
|
1934
|
+
declare interface TSTupleType$1 extends BaseNode$1 {
|
|
1935
|
+
type: AST_NODE_TYPES$1.TSTupleType;
|
|
1936
|
+
elementTypes: TypeNode$1[];
|
|
1937
|
+
}
|
|
1938
|
+
declare interface TSTypeAliasDeclaration$1 extends BaseNode$1 {
|
|
1939
|
+
type: AST_NODE_TYPES$1.TSTypeAliasDeclaration;
|
|
1940
|
+
/**
|
|
1941
|
+
* Whether the type was `declare`d.
|
|
1942
|
+
* @example
|
|
1943
|
+
* ```ts
|
|
1944
|
+
* declare type T = 1;
|
|
1945
|
+
* ```
|
|
1946
|
+
*/
|
|
1947
|
+
declare: boolean;
|
|
1948
|
+
/**
|
|
1949
|
+
* The name of the type.
|
|
1950
|
+
*/
|
|
1951
|
+
id: Identifier$1;
|
|
1952
|
+
/**
|
|
1953
|
+
* The "value" (type) of the declaration
|
|
1954
|
+
*/
|
|
1955
|
+
typeAnnotation: TypeNode$1;
|
|
1956
|
+
/**
|
|
1957
|
+
* The generic type parameters declared for the type. Empty declaration
|
|
1958
|
+
* (`<>`) is different from no declaration.
|
|
1959
|
+
*/
|
|
1960
|
+
typeParameters: TSTypeParameterDeclaration$1 | undefined;
|
|
1961
|
+
}
|
|
1962
|
+
declare interface TSTypeAnnotation$1 extends BaseNode$1 {
|
|
1963
|
+
type: AST_NODE_TYPES$1.TSTypeAnnotation;
|
|
1964
|
+
typeAnnotation: TypeNode$1;
|
|
1965
|
+
}
|
|
1966
|
+
declare interface TSTypeAssertion$1 extends BaseNode$1 {
|
|
1967
|
+
type: AST_NODE_TYPES$1.TSTypeAssertion;
|
|
1968
|
+
expression: Expression$1;
|
|
1969
|
+
typeAnnotation: TypeNode$1;
|
|
1970
|
+
}
|
|
1971
|
+
declare interface TSTypeLiteral$1 extends BaseNode$1 {
|
|
1972
|
+
type: AST_NODE_TYPES$1.TSTypeLiteral;
|
|
1973
|
+
members: TypeElement$1[];
|
|
1974
|
+
}
|
|
1975
|
+
declare interface TSTypeOperator$1 extends BaseNode$1 {
|
|
1976
|
+
type: AST_NODE_TYPES$1.TSTypeOperator;
|
|
1977
|
+
operator: 'keyof' | 'readonly' | 'unique';
|
|
1978
|
+
typeAnnotation: TypeNode$1 | undefined;
|
|
1979
|
+
}
|
|
1980
|
+
declare interface TSTypeParameter$1 extends BaseNode$1 {
|
|
1981
|
+
type: AST_NODE_TYPES$1.TSTypeParameter;
|
|
1982
|
+
const: boolean;
|
|
1983
|
+
constraint: TypeNode$1 | undefined;
|
|
1984
|
+
default: TypeNode$1 | undefined;
|
|
1985
|
+
in: boolean;
|
|
1986
|
+
name: Identifier$1;
|
|
1987
|
+
out: boolean;
|
|
1988
|
+
}
|
|
1989
|
+
declare interface TSTypeParameterDeclaration$1 extends BaseNode$1 {
|
|
1990
|
+
type: AST_NODE_TYPES$1.TSTypeParameterDeclaration;
|
|
1991
|
+
params: TSTypeParameter$1[];
|
|
1992
|
+
}
|
|
1993
|
+
declare interface TSTypeParameterInstantiation$1 extends BaseNode$1 {
|
|
1994
|
+
type: AST_NODE_TYPES$1.TSTypeParameterInstantiation;
|
|
1995
|
+
params: TypeNode$1[];
|
|
1996
|
+
}
|
|
1997
|
+
declare interface TSTypePredicate$1 extends BaseNode$1 {
|
|
1998
|
+
type: AST_NODE_TYPES$1.TSTypePredicate;
|
|
1999
|
+
asserts: boolean;
|
|
2000
|
+
parameterName: Identifier$1 | TSThisType$1;
|
|
2001
|
+
typeAnnotation: TSTypeAnnotation$1 | null;
|
|
2002
|
+
}
|
|
2003
|
+
declare interface TSTypeQuery$1 extends BaseNode$1 {
|
|
2004
|
+
type: AST_NODE_TYPES$1.TSTypeQuery;
|
|
2005
|
+
exprName: EntityName$1 | TSImportType$1;
|
|
2006
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
2007
|
+
}
|
|
2008
|
+
declare interface TSTypeReference$1 extends BaseNode$1 {
|
|
2009
|
+
type: AST_NODE_TYPES$1.TSTypeReference;
|
|
2010
|
+
typeArguments: TSTypeParameterInstantiation$1 | undefined;
|
|
2011
|
+
typeName: EntityName$1;
|
|
2012
|
+
}
|
|
2013
|
+
declare interface TSUndefinedKeyword$1 extends BaseNode$1 {
|
|
2014
|
+
type: AST_NODE_TYPES$1.TSUndefinedKeyword;
|
|
2015
|
+
}
|
|
2016
|
+
declare interface TSUnionType$1 extends BaseNode$1 {
|
|
2017
|
+
type: AST_NODE_TYPES$1.TSUnionType;
|
|
2018
|
+
types: TypeNode$1[];
|
|
2019
|
+
}
|
|
2020
|
+
declare interface TSUnknownKeyword$1 extends BaseNode$1 {
|
|
2021
|
+
type: AST_NODE_TYPES$1.TSUnknownKeyword;
|
|
2022
|
+
}
|
|
2023
|
+
declare interface TSVoidKeyword$1 extends BaseNode$1 {
|
|
2024
|
+
type: AST_NODE_TYPES$1.TSVoidKeyword;
|
|
2025
|
+
}
|
|
2026
|
+
declare type TypeElement$1 = TSCallSignatureDeclaration$1 | TSConstructSignatureDeclaration$1 | TSIndexSignature$1 | TSMethodSignature$1 | TSPropertySignature$1;
|
|
2027
|
+
declare type TypeNode$1 = TSAbstractKeyword$1 | TSAnyKeyword$1 | TSArrayType$1 | TSAsyncKeyword$1 | TSBigIntKeyword$1 | TSBooleanKeyword$1 | TSConditionalType$1 | TSConstructorType$1 | TSDeclareKeyword$1 | TSExportKeyword$1 | TSFunctionType$1 | TSImportType$1 | TSIndexedAccessType$1 | TSInferType$1 | TSIntersectionType$1 | TSIntrinsicKeyword$1 | TSLiteralType$1 | TSMappedType$1 | TSNamedTupleMember$1 | TSNeverKeyword$1 | TSNullKeyword$1 | TSNumberKeyword$1 | TSObjectKeyword$1 | TSOptionalType$1 | TSPrivateKeyword$1 | TSProtectedKeyword$1 | TSPublicKeyword$1 | TSQualifiedName$1 | TSReadonlyKeyword$1 | TSRestType$1 | TSStaticKeyword$1 | TSStringKeyword$1 | TSSymbolKeyword$1 | TSTemplateLiteralType$1 | TSThisType$1 | TSTupleType$1 | TSTypeLiteral$1 | TSTypeOperator$1 | TSTypePredicate$1 | TSTypeQuery$1 | TSTypeReference$1 | TSUndefinedKeyword$1 | TSUnionType$1 | TSUnknownKeyword$1 | TSVoidKeyword$1;
|
|
2028
|
+
declare type UnaryExpression$1 = UnaryExpressionBitwiseNot$1 | UnaryExpressionDelete$1 | UnaryExpressionMinus$1 | UnaryExpressionNot$1 | UnaryExpressionPlus$1 | UnaryExpressionTypeof$1 | UnaryExpressionVoid$1;
|
|
2029
|
+
declare interface UnaryExpressionBase$1 extends BaseNode$1 {
|
|
2030
|
+
argument: Expression$1;
|
|
2031
|
+
operator: string;
|
|
2032
|
+
prefix: boolean;
|
|
2033
|
+
}
|
|
2034
|
+
declare type UnaryExpressionBitwiseNot$1 = UnaryExpressionSpecific$1<'~'>;
|
|
2035
|
+
declare type UnaryExpressionDelete$1 = UnaryExpressionSpecific$1<'delete'>;
|
|
2036
|
+
declare type UnaryExpressionMinus$1 = UnaryExpressionSpecific$1<'-'>;
|
|
2037
|
+
declare type UnaryExpressionNot$1 = UnaryExpressionSpecific$1<'!'>;
|
|
2038
|
+
declare type UnaryExpressionPlus$1 = UnaryExpressionSpecific$1<'+'>;
|
|
2039
|
+
declare interface UnaryExpressionSpecific$1<T extends string> extends UnaryExpressionBase$1 {
|
|
2040
|
+
type: AST_NODE_TYPES$1.UnaryExpression;
|
|
2041
|
+
operator: T;
|
|
2042
|
+
}
|
|
2043
|
+
declare type UnaryExpressionTypeof$1 = UnaryExpressionSpecific$1<'typeof'>;
|
|
2044
|
+
declare type UnaryExpressionVoid$1 = UnaryExpressionSpecific$1<'void'>;
|
|
2045
|
+
declare interface UpdateExpression$1 extends UnaryExpressionBase$1 {
|
|
2046
|
+
type: AST_NODE_TYPES$1.UpdateExpression;
|
|
2047
|
+
operator: '++' | '--';
|
|
2048
|
+
}
|
|
2049
|
+
declare type UsingDeclaration$1 = UsingInForOfDeclaration$1 | UsingInNormalContextDeclaration$1;
|
|
2050
|
+
declare interface UsingDeclarationBase$1 extends BaseNode$1 {
|
|
2051
|
+
type: AST_NODE_TYPES$1.VariableDeclaration;
|
|
2052
|
+
/**
|
|
2053
|
+
* This value will always be `false`
|
|
2054
|
+
* because 'declare' modifier cannot appear on a 'using' declaration.
|
|
2055
|
+
*/
|
|
2056
|
+
declare: false;
|
|
2057
|
+
/**
|
|
2058
|
+
* The keyword used to declare the variable(s)
|
|
2059
|
+
* @example
|
|
2060
|
+
* ```ts
|
|
2061
|
+
* using x = 1;
|
|
2062
|
+
* await using y = 2;
|
|
2063
|
+
* ```
|
|
2064
|
+
*/
|
|
2065
|
+
kind: 'await using' | 'using';
|
|
2066
|
+
}
|
|
2067
|
+
declare type UsingDeclarator$1 = UsingInForOfDeclarator$1 | UsingInNormalContextDeclarator$1;
|
|
2068
|
+
declare interface UsingInForOfDeclaration$1 extends UsingDeclarationBase$1 {
|
|
2069
|
+
/**
|
|
2070
|
+
* The variables declared by this declaration.
|
|
2071
|
+
* Always has exactly one element.
|
|
2072
|
+
* @example
|
|
2073
|
+
* ```ts
|
|
2074
|
+
* for (using x of y) {}
|
|
2075
|
+
* ```
|
|
2076
|
+
*/
|
|
2077
|
+
declarations: [UsingInForOfDeclarator$1];
|
|
2078
|
+
}
|
|
2079
|
+
declare interface UsingInForOfDeclarator$1 extends VariableDeclaratorBase$1 {
|
|
2080
|
+
definite: false;
|
|
2081
|
+
id: Identifier$1;
|
|
2082
|
+
init: null;
|
|
2083
|
+
}
|
|
2084
|
+
declare interface UsingInNormalContextDeclaration$1 extends UsingDeclarationBase$1 {
|
|
2085
|
+
/**
|
|
2086
|
+
* The variables declared by this declaration.
|
|
2087
|
+
* Always non-empty.
|
|
2088
|
+
* @example
|
|
2089
|
+
* ```ts
|
|
2090
|
+
* using x = 1;
|
|
2091
|
+
* using y = 1, z = 2;
|
|
2092
|
+
* ```
|
|
2093
|
+
*/
|
|
2094
|
+
declarations: UsingInNormalContextDeclarator$1[];
|
|
2095
|
+
}
|
|
2096
|
+
declare interface UsingInNormalContextDeclarator$1 extends VariableDeclaratorBase$1 {
|
|
2097
|
+
definite: false;
|
|
2098
|
+
id: Identifier$1;
|
|
2099
|
+
init: Expression$1;
|
|
2100
|
+
}
|
|
2101
|
+
declare type ValueOf$1<T> = T[keyof T];
|
|
2102
|
+
declare type VariableDeclaration$1 = LetOrConstOrVarDeclaration$1 | UsingDeclaration$1;
|
|
2103
|
+
declare type VariableDeclarator$1 = LetOrConstOrVarDeclarator$1 | UsingDeclarator$1;
|
|
2104
|
+
declare interface VariableDeclaratorBase$1 extends BaseNode$1 {
|
|
2105
|
+
type: AST_NODE_TYPES$1.VariableDeclarator;
|
|
2106
|
+
/**
|
|
2107
|
+
* Whether there's definite assignment assertion (`let x!: number`).
|
|
2108
|
+
* If `true`, then: `id` must be an identifier with a type annotation,
|
|
2109
|
+
* `init` must be `null`, and the declarator must be a `var`/`let` declarator.
|
|
2110
|
+
*/
|
|
2111
|
+
definite: boolean;
|
|
2112
|
+
/**
|
|
2113
|
+
* The name(s) of the variable(s).
|
|
2114
|
+
*/
|
|
2115
|
+
id: BindingName$1;
|
|
2116
|
+
/**
|
|
2117
|
+
* The initializer expression of the variable. Must be present for `const` unless
|
|
2118
|
+
* in a `declare const`.
|
|
2119
|
+
*/
|
|
2120
|
+
init: Expression$1 | null;
|
|
2121
|
+
}
|
|
2122
|
+
declare interface VariableDeclaratorDefiniteAssignment$1 extends VariableDeclaratorBase$1 {
|
|
2123
|
+
definite: true;
|
|
2124
|
+
/**
|
|
2125
|
+
* The name of the variable. Must have a type annotation.
|
|
2126
|
+
*/
|
|
2127
|
+
id: Identifier$1;
|
|
2128
|
+
init: null;
|
|
2129
|
+
}
|
|
2130
|
+
declare interface VariableDeclaratorMaybeInit$1 extends VariableDeclaratorBase$1 {
|
|
2131
|
+
definite: false;
|
|
2132
|
+
}
|
|
2133
|
+
declare interface VariableDeclaratorNoInit$1 extends VariableDeclaratorBase$1 {
|
|
2134
|
+
definite: false;
|
|
2135
|
+
init: null;
|
|
2136
|
+
}
|
|
2137
|
+
declare interface WhileStatement$1 extends BaseNode$1 {
|
|
2138
|
+
type: AST_NODE_TYPES$1.WhileStatement;
|
|
2139
|
+
body: Statement$1;
|
|
2140
|
+
test: Expression$1;
|
|
2141
|
+
}
|
|
2142
|
+
declare interface WithStatement$1 extends BaseNode$1 {
|
|
2143
|
+
type: AST_NODE_TYPES$1.WithStatement;
|
|
2144
|
+
body: Statement$1;
|
|
2145
|
+
object: Expression$1;
|
|
2146
|
+
}
|
|
2147
|
+
declare interface YieldExpression$1 extends BaseNode$1 {
|
|
2148
|
+
type: AST_NODE_TYPES$1.YieldExpression;
|
|
2149
|
+
argument: Expression$1 | null;
|
|
2150
|
+
delegate: boolean;
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
|
|
2154
|
+
|
|
2155
|
+
type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
|
|
2156
|
+
type CacheDurationSeconds = number | 'Infinity';
|
|
2157
|
+
type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 'latest' | undefined;
|
|
2158
|
+
type SourceTypeClassic = 'module' | 'script';
|
|
2159
|
+
type SourceType = 'commonjs' | SourceTypeClassic;
|
|
2160
|
+
type JSDocParsingMode = 'all' | 'none' | 'type-info';
|
|
2161
|
+
/**
|
|
2162
|
+
* Granular options to configure the project service.
|
|
2163
|
+
*/
|
|
2164
|
+
interface ProjectServiceOptions {
|
|
2165
|
+
/**
|
|
2166
|
+
* Globs of files to allow running with the default project compiler options
|
|
2167
|
+
* despite not being matched by the project service.
|
|
2168
|
+
*/
|
|
2169
|
+
allowDefaultProject?: string[];
|
|
2170
|
+
/**
|
|
2171
|
+
* Path to a TSConfig to use instead of TypeScript's default project configuration.
|
|
2172
|
+
* @default 'tsconfig.json'
|
|
2173
|
+
*/
|
|
2174
|
+
defaultProject?: string;
|
|
2175
|
+
/**
|
|
2176
|
+
* Whether to allow TypeScript plugins as configured in the TSConfig.
|
|
2177
|
+
*/
|
|
2178
|
+
loadTypeScriptPlugins?: boolean;
|
|
2179
|
+
/**
|
|
2180
|
+
* The maximum number of files {@link allowDefaultProject} may match.
|
|
2181
|
+
* Each file match slows down linting, so if you do need to use this, please
|
|
2182
|
+
* file an informative issue on typescript-eslint explaining why - so we can
|
|
2183
|
+
* help you avoid using it!
|
|
2184
|
+
* @default 8
|
|
2185
|
+
*/
|
|
2186
|
+
maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number;
|
|
2187
|
+
}
|
|
2188
|
+
interface ParserOptions {
|
|
2189
|
+
[additionalProperties: string]: unknown;
|
|
2190
|
+
cacheLifetime?: {
|
|
2191
|
+
glob?: CacheDurationSeconds;
|
|
2192
|
+
};
|
|
2193
|
+
debugLevel?: DebugLevel;
|
|
2194
|
+
ecmaFeatures?: {
|
|
2195
|
+
[key: string]: unknown;
|
|
2196
|
+
globalReturn?: boolean | undefined;
|
|
2197
|
+
jsx?: boolean | undefined;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
ecmaVersion?: EcmaVersion;
|
|
2200
|
+
emitDecoratorMetadata?: boolean;
|
|
2201
|
+
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
|
2202
|
+
errorOnUnknownASTType?: boolean;
|
|
2203
|
+
experimentalDecorators?: boolean;
|
|
2204
|
+
extraFileExtensions?: string[];
|
|
2205
|
+
filePath?: string;
|
|
2206
|
+
isolatedDeclarations?: boolean;
|
|
2207
|
+
jsDocParsingMode?: JSDocParsingMode;
|
|
2208
|
+
jsxFragmentName?: string | null;
|
|
2209
|
+
jsxPragma?: string | null;
|
|
2210
|
+
lib?: Lib[];
|
|
2211
|
+
programs?: Program$2[] | null;
|
|
2212
|
+
project?: boolean | string | string[] | null;
|
|
2213
|
+
projectFolderIgnoreList?: string[];
|
|
2214
|
+
projectService?: boolean | ProjectServiceOptions;
|
|
2215
|
+
range?: boolean;
|
|
2216
|
+
sourceType?: SourceType | undefined;
|
|
2217
|
+
tokens?: boolean;
|
|
2218
|
+
tsconfigRootDir?: string;
|
|
2219
|
+
warnOnUnsupportedTypeScriptVersion?: boolean;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
declare module "./index" {
|
|
2223
|
+
interface BaseNode {
|
|
2224
|
+
parent: Node$1;
|
|
2225
|
+
}
|
|
2226
|
+
interface Program {
|
|
2227
|
+
/**
|
|
2228
|
+
* @remarks This never-used property exists only as a convenience for code that tries to access node parents repeatedly.
|
|
2229
|
+
*/
|
|
2230
|
+
parent?: never;
|
|
2231
|
+
}
|
|
2232
|
+
interface AccessorPropertyComputedName {
|
|
2233
|
+
parent: ClassBody$1;
|
|
2234
|
+
}
|
|
2235
|
+
interface AccessorPropertyNonComputedName {
|
|
2236
|
+
parent: ClassBody$1;
|
|
2237
|
+
}
|
|
2238
|
+
interface TSAbstractAccessorPropertyComputedName {
|
|
2239
|
+
parent: ClassBody$1;
|
|
2240
|
+
}
|
|
2241
|
+
interface TSAbstractAccessorPropertyNonComputedName {
|
|
2242
|
+
parent: ClassBody$1;
|
|
2243
|
+
}
|
|
2244
|
+
interface VariableDeclaratorDefiniteAssignment {
|
|
2245
|
+
parent: VariableDeclaration$1;
|
|
2246
|
+
}
|
|
2247
|
+
interface VariableDeclaratorMaybeInit {
|
|
2248
|
+
parent: VariableDeclaration$1;
|
|
2249
|
+
}
|
|
2250
|
+
interface VariableDeclaratorNoInit {
|
|
2251
|
+
parent: VariableDeclaration$1;
|
|
2252
|
+
}
|
|
2253
|
+
interface UsingInForOfDeclarator {
|
|
2254
|
+
parent: VariableDeclaration$1;
|
|
2255
|
+
}
|
|
2256
|
+
interface UsingInNormalContextDeclarator {
|
|
2257
|
+
parent: VariableDeclaration$1;
|
|
2258
|
+
}
|
|
2259
|
+
interface CatchClause {
|
|
2260
|
+
parent: TryStatement$1;
|
|
2261
|
+
}
|
|
2262
|
+
interface ClassBody {
|
|
2263
|
+
parent: ClassDeclaration$1 | ClassExpression$1;
|
|
2264
|
+
}
|
|
2265
|
+
interface ImportAttribute {
|
|
2266
|
+
parent: ExportAllDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1 | TSImportType$1;
|
|
2267
|
+
}
|
|
2268
|
+
interface ImportDefaultSpecifier {
|
|
2269
|
+
parent: ImportDeclaration$1;
|
|
2270
|
+
}
|
|
2271
|
+
interface ImportNamespaceSpecifier {
|
|
2272
|
+
parent: ImportDeclaration$1;
|
|
2273
|
+
}
|
|
2274
|
+
interface ImportSpecifier {
|
|
2275
|
+
parent: ExportAllDeclaration$1 | ExportNamedDeclaration$1 | ImportDeclaration$1;
|
|
2276
|
+
}
|
|
2277
|
+
interface ExportDefaultDeclaration {
|
|
2278
|
+
parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
|
|
2279
|
+
}
|
|
2280
|
+
interface ExportNamedDeclarationWithoutSourceWithMultiple {
|
|
2281
|
+
parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
|
|
2282
|
+
}
|
|
2283
|
+
interface ExportNamedDeclarationWithoutSourceWithSingle {
|
|
2284
|
+
parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
|
|
2285
|
+
}
|
|
2286
|
+
interface ExportNamedDeclarationWithSource {
|
|
2287
|
+
parent: BlockStatement$1 | Program$1 | TSModuleBlock$1;
|
|
2288
|
+
}
|
|
2289
|
+
interface FunctionDeclarationWithName {
|
|
2290
|
+
parent: BlockStatement$1 | ExportDefaultDeclaration$1 | ExportNamedDeclaration$1 | Program$1;
|
|
2291
|
+
}
|
|
2292
|
+
interface FunctionDeclarationWithOptionalName {
|
|
2293
|
+
parent: ExportDefaultDeclaration$1;
|
|
2294
|
+
}
|
|
2295
|
+
interface JSXAttribute {
|
|
2296
|
+
parent: JSXOpeningElement$1;
|
|
2297
|
+
}
|
|
2298
|
+
interface JSXClosingElement {
|
|
2299
|
+
parent: JSXElement$1;
|
|
2300
|
+
}
|
|
2301
|
+
interface JSXClosingFragment {
|
|
2302
|
+
parent: JSXFragment$1;
|
|
2303
|
+
}
|
|
2304
|
+
interface JSXOpeningElement {
|
|
2305
|
+
parent: JSXElement$1;
|
|
2306
|
+
}
|
|
2307
|
+
interface JSXOpeningFragment {
|
|
2308
|
+
parent: JSXFragment$1;
|
|
2309
|
+
}
|
|
2310
|
+
interface JSXSpreadAttribute {
|
|
2311
|
+
parent: JSXOpeningElement$1;
|
|
2312
|
+
}
|
|
2313
|
+
interface MethodDefinitionComputedName {
|
|
2314
|
+
parent: ClassBody$1;
|
|
2315
|
+
}
|
|
2316
|
+
interface MethodDefinitionNonComputedName {
|
|
2317
|
+
parent: ClassBody$1;
|
|
2318
|
+
}
|
|
2319
|
+
interface TSAbstractMethodDefinitionComputedName {
|
|
2320
|
+
parent: ClassBody$1;
|
|
2321
|
+
}
|
|
2322
|
+
interface TSAbstractMethodDefinitionNonComputedName {
|
|
2323
|
+
parent: ClassBody$1;
|
|
2324
|
+
}
|
|
2325
|
+
interface PropertyComputedName {
|
|
2326
|
+
parent: ObjectExpression$1 | ObjectPattern$1;
|
|
2327
|
+
}
|
|
2328
|
+
interface PropertyNonComputedName {
|
|
2329
|
+
parent: ObjectExpression$1 | ObjectPattern$1;
|
|
2330
|
+
}
|
|
2331
|
+
interface PropertyDefinitionComputedName {
|
|
2332
|
+
parent: ClassBody$1;
|
|
2333
|
+
}
|
|
2334
|
+
interface PropertyDefinitionNonComputedName {
|
|
2335
|
+
parent: ClassBody$1;
|
|
2336
|
+
}
|
|
2337
|
+
interface TSAbstractPropertyDefinitionComputedName {
|
|
2338
|
+
parent: ClassBody$1;
|
|
2339
|
+
}
|
|
2340
|
+
interface TSAbstractPropertyDefinitionNonComputedName {
|
|
2341
|
+
parent: ClassBody$1;
|
|
2342
|
+
}
|
|
2343
|
+
interface SpreadElement {
|
|
2344
|
+
parent: ArrayExpression$1 | CallExpression$1 | NewExpression$1 | ObjectExpression$1;
|
|
2345
|
+
}
|
|
2346
|
+
interface StaticBlock {
|
|
2347
|
+
parent: ClassBody$1;
|
|
2348
|
+
}
|
|
2349
|
+
interface SwitchCase {
|
|
2350
|
+
parent: SwitchStatement$1;
|
|
2351
|
+
}
|
|
2352
|
+
interface TemplateElement {
|
|
2353
|
+
parent: TemplateLiteral$1 | TSTemplateLiteralType$1;
|
|
2354
|
+
}
|
|
2355
|
+
interface TSCallSignatureDeclaration {
|
|
2356
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2357
|
+
}
|
|
2358
|
+
interface TSConstructSignatureDeclaration {
|
|
2359
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2360
|
+
}
|
|
2361
|
+
interface TSClassImplements {
|
|
2362
|
+
parent: ClassDeclaration$1 | ClassExpression$1;
|
|
2363
|
+
}
|
|
2364
|
+
interface TSEnumBody {
|
|
2365
|
+
parent: TSEnumDeclaration$1;
|
|
2366
|
+
}
|
|
2367
|
+
interface TSEnumMember {
|
|
2368
|
+
parent: TSEnumBody$1;
|
|
2369
|
+
}
|
|
2370
|
+
interface TSIndexSignature {
|
|
2371
|
+
parent: ClassBody$1 | TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2372
|
+
}
|
|
2373
|
+
interface TSInterfaceBody {
|
|
2374
|
+
parent: TSInterfaceDeclaration$1;
|
|
2375
|
+
}
|
|
2376
|
+
interface TSInterfaceHeritage {
|
|
2377
|
+
parent: TSInterfaceBody$1;
|
|
2378
|
+
}
|
|
2379
|
+
interface TSMethodSignatureComputedName {
|
|
2380
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2381
|
+
}
|
|
2382
|
+
interface TSMethodSignatureNonComputedName {
|
|
2383
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2384
|
+
}
|
|
2385
|
+
interface TSModuleBlock {
|
|
2386
|
+
parent: TSModuleDeclaration$1;
|
|
2387
|
+
}
|
|
2388
|
+
interface TSParameterProperty {
|
|
2389
|
+
parent: FunctionLike$1;
|
|
2390
|
+
}
|
|
2391
|
+
interface TSPropertySignatureComputedName {
|
|
2392
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2393
|
+
}
|
|
2394
|
+
interface TSPropertySignatureNonComputedName {
|
|
2395
|
+
parent: TSInterfaceBody$1 | TSTypeLiteral$1;
|
|
2396
|
+
}
|
|
2397
|
+
interface TSTypeParameter {
|
|
2398
|
+
parent: TSInferType$1 | TSMappedType$1 | TSTypeParameterDeclaration$1;
|
|
2399
|
+
}
|
|
2400
|
+
interface ExportSpecifierWithIdentifierLocal {
|
|
2401
|
+
parent: ExportNamedDeclaration$1;
|
|
2402
|
+
}
|
|
2403
|
+
interface ExportSpecifierWithStringOrLiteralLocal {
|
|
2404
|
+
parent: ExportNamedDeclaration$1;
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
type NodeWithParent = Exclude<Node$1, Program$1>;
|
|
2409
|
+
|
|
5
2410
|
/**********************************************
|
|
6
2411
|
* DO NOT MODIFY THIS FILE MANUALLY *
|
|
7
2412
|
* *
|
|
@@ -1338,7 +3743,7 @@ declare interface TemplateElement extends BaseNode {
|
|
|
1338
3743
|
type: AST_NODE_TYPES.TemplateElement;
|
|
1339
3744
|
tail: boolean;
|
|
1340
3745
|
value: {
|
|
1341
|
-
cooked: string;
|
|
3746
|
+
cooked: string | null;
|
|
1342
3747
|
raw: string;
|
|
1343
3748
|
};
|
|
1344
3749
|
}
|
|
@@ -2150,75 +4555,6 @@ declare interface YieldExpression extends BaseNode {
|
|
|
2150
4555
|
delegate: boolean;
|
|
2151
4556
|
}
|
|
2152
4557
|
|
|
2153
|
-
type Lib = 'decorators' | 'decorators.legacy' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016' | 'es2016.array.include' | 'es2016.full' | 'es2016.intl' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.full' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.full' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.full' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.full' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.full' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.full' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.full' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.full' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.float16' | 'esnext.full' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.sharedmemory' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
|
|
2154
|
-
|
|
2155
|
-
type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
|
|
2156
|
-
type CacheDurationSeconds = number | 'Infinity';
|
|
2157
|
-
type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | 2026 | 'latest' | undefined;
|
|
2158
|
-
type SourceTypeClassic = 'module' | 'script';
|
|
2159
|
-
type SourceType = 'commonjs' | SourceTypeClassic;
|
|
2160
|
-
type JSDocParsingMode = 'all' | 'none' | 'type-info';
|
|
2161
|
-
/**
|
|
2162
|
-
* Granular options to configure the project service.
|
|
2163
|
-
*/
|
|
2164
|
-
interface ProjectServiceOptions {
|
|
2165
|
-
/**
|
|
2166
|
-
* Globs of files to allow running with the default project compiler options
|
|
2167
|
-
* despite not being matched by the project service.
|
|
2168
|
-
*/
|
|
2169
|
-
allowDefaultProject?: string[];
|
|
2170
|
-
/**
|
|
2171
|
-
* Path to a TSConfig to use instead of TypeScript's default project configuration.
|
|
2172
|
-
* @default 'tsconfig.json'
|
|
2173
|
-
*/
|
|
2174
|
-
defaultProject?: string;
|
|
2175
|
-
/**
|
|
2176
|
-
* Whether to allow TypeScript plugins as configured in the TSConfig.
|
|
2177
|
-
*/
|
|
2178
|
-
loadTypeScriptPlugins?: boolean;
|
|
2179
|
-
/**
|
|
2180
|
-
* The maximum number of files {@link allowDefaultProject} may match.
|
|
2181
|
-
* Each file match slows down linting, so if you do need to use this, please
|
|
2182
|
-
* file an informative issue on typescript-eslint explaining why - so we can
|
|
2183
|
-
* help you avoid using it!
|
|
2184
|
-
* @default 8
|
|
2185
|
-
*/
|
|
2186
|
-
maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number;
|
|
2187
|
-
}
|
|
2188
|
-
interface ParserOptions {
|
|
2189
|
-
[additionalProperties: string]: unknown;
|
|
2190
|
-
cacheLifetime?: {
|
|
2191
|
-
glob?: CacheDurationSeconds;
|
|
2192
|
-
};
|
|
2193
|
-
debugLevel?: DebugLevel;
|
|
2194
|
-
ecmaFeatures?: {
|
|
2195
|
-
[key: string]: unknown;
|
|
2196
|
-
globalReturn?: boolean | undefined;
|
|
2197
|
-
jsx?: boolean | undefined;
|
|
2198
|
-
} | undefined;
|
|
2199
|
-
ecmaVersion?: EcmaVersion;
|
|
2200
|
-
emitDecoratorMetadata?: boolean;
|
|
2201
|
-
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
|
2202
|
-
errorOnUnknownASTType?: boolean;
|
|
2203
|
-
experimentalDecorators?: boolean;
|
|
2204
|
-
extraFileExtensions?: string[];
|
|
2205
|
-
filePath?: string;
|
|
2206
|
-
isolatedDeclarations?: boolean;
|
|
2207
|
-
jsDocParsingMode?: JSDocParsingMode;
|
|
2208
|
-
jsxFragmentName?: string | null;
|
|
2209
|
-
jsxPragma?: string | null;
|
|
2210
|
-
lib?: Lib[];
|
|
2211
|
-
programs?: Program$1[] | null;
|
|
2212
|
-
project?: boolean | string | string[] | null;
|
|
2213
|
-
projectFolderIgnoreList?: string[];
|
|
2214
|
-
projectService?: boolean | ProjectServiceOptions;
|
|
2215
|
-
range?: boolean;
|
|
2216
|
-
sourceType?: SourceType | undefined;
|
|
2217
|
-
tokens?: boolean;
|
|
2218
|
-
tsconfigRootDir?: string;
|
|
2219
|
-
warnOnUnsupportedTypeScriptVersion?: boolean;
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
4558
|
declare module "./index" {
|
|
2223
4559
|
interface BaseNode {
|
|
2224
4560
|
parent: Node;
|
|
@@ -2405,8 +4741,6 @@ declare module "./index" {
|
|
|
2405
4741
|
}
|
|
2406
4742
|
}
|
|
2407
4743
|
|
|
2408
|
-
type NodeWithParent = Exclude<Node, Program>;
|
|
2409
|
-
|
|
2410
4744
|
declare module 'typescript' {
|
|
2411
4745
|
interface AssertClause extends ts.ImportAttributes {
|
|
2412
4746
|
}
|
|
@@ -2425,180 +4759,180 @@ type TSToken = ts.Token<ts.SyntaxKind>;
|
|
|
2425
4759
|
type TSNode = ts.ArrayBindingPattern | ts.ArrayLiteralExpression | ts.ArrayTypeNode | ts.ArrowFunction | ts.AsExpression | ts.AssertClause | ts.AssertEntry | ts.AwaitExpression | ts.BigIntLiteral | ts.BinaryExpression | ts.BindingElement | ts.Block | ts.BooleanLiteral | ts.BreakStatement | ts.Bundle | ts.CallExpression | ts.CallSignatureDeclaration | ts.CaseBlock | ts.CaseClause | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.ClassStaticBlockDeclaration | ts.CommaListExpression | ts.ComputedPropertyName | ts.ConditionalExpression | ts.ConditionalTypeNode | ts.ConstructorDeclaration | ts.ConstructorTypeNode | ts.ConstructSignatureDeclaration | ts.ContinueStatement | ts.DebuggerStatement | ts.Decorator | ts.DefaultClause | ts.DeleteExpression | ts.DoStatement | ts.ElementAccessExpression | ts.EmptyStatement | ts.EnumDeclaration | ts.EnumMember | ts.ExportAssignment | ts.ExportDeclaration | ts.ExportSpecifier | ts.ExpressionStatement | ts.ExpressionWithTypeArguments | ts.ExternalModuleReference | ts.ForInStatement | ts.ForOfStatement | ts.ForStatement | ts.FunctionDeclaration | ts.FunctionExpression | ts.FunctionTypeNode | ts.GetAccessorDeclaration | ts.HeritageClause | ts.Identifier | ts.IfStatement | ts.ImportAttribute | ts.ImportAttributes | ts.ImportClause | ts.ImportDeclaration | ts.ImportEqualsDeclaration | ts.ImportExpression | ts.ImportSpecifier | ts.ImportTypeNode | ts.IndexedAccessTypeNode | ts.IndexSignatureDeclaration | ts.InferTypeNode | ts.InterfaceDeclaration | ts.IntersectionTypeNode | ts.JSDoc | ts.JSDocAllType | ts.JSDocAugmentsTag | ts.JSDocAuthorTag | ts.JSDocCallbackTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocFunctionType | ts.JSDocNonNullableType | ts.JSDocNullableType | ts.JSDocOptionalType | ts.JSDocParameterTag | ts.JSDocPropertyTag | ts.JSDocReturnTag | ts.JSDocSignature | ts.JSDocTemplateTag | ts.JSDocThisTag | ts.JSDocTypedefTag | ts.JSDocTypeExpression | ts.JSDocTypeLiteral | ts.JSDocTypeTag | ts.JSDocUnknownTag | ts.JSDocUnknownType | ts.JSDocVariadicType | ts.JsonMinusNumericLiteral | ts.JsxAttribute | ts.JsxClosingElement | ts.JsxClosingFragment | ts.JsxElement | ts.JsxExpression | ts.JsxFragment | ts.JsxNamespacedName | ts.JsxOpeningElement | ts.JsxOpeningFragment | ts.JsxSelfClosingElement | ts.JsxSpreadAttribute | ts.JsxText | ts.KeywordTypeNode | ts.LabeledStatement | ts.LiteralTypeNode | ts.MappedTypeNode | ts.MetaProperty | ts.MethodDeclaration | ts.MethodSignature | ts.MissingDeclaration | ts.Modifier | ts.ModuleBlock | ts.ModuleDeclaration | ts.NamedExports | ts.NamedImports | ts.NamedTupleMember | ts.NamespaceExportDeclaration | ts.NamespaceImport | ts.NewExpression | ts.NonNullExpression | ts.NoSubstitutionTemplateLiteral | ts.NotEmittedStatement | ts.NullLiteral | ts.NumericLiteral | ts.ObjectBindingPattern | ts.ObjectLiteralExpression | ts.OmittedExpression | ts.OptionalTypeNode | ts.ParameterDeclaration | ts.ParenthesizedExpression | ts.ParenthesizedTypeNode | ts.PartiallyEmittedExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.PrivateIdentifier | ts.PropertyAccessExpression | ts.PropertyAssignment | ts.PropertyDeclaration | ts.PropertySignature | ts.QualifiedName | ts.RegularExpressionLiteral | ts.RestTypeNode | ts.ReturnStatement | ts.SatisfiesExpression | ts.SemicolonClassElement | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment | ts.SourceFile | ts.SpreadAssignment | ts.SpreadElement | ts.StringLiteral | ts.SuperExpression | ts.SwitchStatement | ts.SyntheticExpression | ts.TaggedTemplateExpression | ts.TemplateExpression | ts.TemplateHead | ts.TemplateLiteralTypeNode | ts.TemplateMiddle | ts.TemplateSpan | ts.TemplateTail | ts.ThisExpression | ts.ThisTypeNode | ts.ThrowStatement | ts.TryStatement | ts.TupleTypeNode | ts.TypeAliasDeclaration | ts.TypeAssertion | ts.TypeLiteralNode | ts.TypeOfExpression | ts.TypeOperatorNode | ts.TypeParameterDeclaration | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeReferenceNode | ts.UnionTypeNode | ts.VariableDeclaration | ts.VariableDeclarationList | ts.VariableStatement | ts.VoidExpression | ts.WhileStatement | ts.WithStatement | ts.YieldExpression;
|
|
2426
4760
|
|
|
2427
4761
|
interface EstreeToTsNodeTypes {
|
|
2428
|
-
[AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
|
|
2429
|
-
[AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
|
|
2430
|
-
[AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
|
|
2431
|
-
[AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
|
|
2432
|
-
[AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression;
|
|
2433
|
-
[AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
|
|
2434
|
-
[AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression;
|
|
2435
|
-
[AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression;
|
|
2436
|
-
[AST_NODE_TYPES.BlockStatement]: ts.Block;
|
|
2437
|
-
[AST_NODE_TYPES.BreakStatement]: ts.BreakStatement;
|
|
2438
|
-
[AST_NODE_TYPES.CallExpression]: ts.CallExpression;
|
|
2439
|
-
[AST_NODE_TYPES.CatchClause]: ts.CatchClause;
|
|
2440
|
-
[AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
|
|
2441
|
-
[AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
|
|
2442
|
-
[AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration;
|
|
2443
|
-
[AST_NODE_TYPES.ClassExpression]: ts.ClassExpression;
|
|
2444
|
-
[AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression;
|
|
2445
|
-
[AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement;
|
|
2446
|
-
[AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement;
|
|
2447
|
-
[AST_NODE_TYPES.Decorator]: ts.Decorator;
|
|
2448
|
-
[AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement;
|
|
2449
|
-
[AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement;
|
|
2450
|
-
[AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration;
|
|
2451
|
-
[AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
2452
|
-
[AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
2453
|
-
[AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier;
|
|
2454
|
-
[AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement;
|
|
2455
|
-
[AST_NODE_TYPES.ForInStatement]: ts.ForInStatement;
|
|
2456
|
-
[AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement;
|
|
2457
|
-
[AST_NODE_TYPES.ForStatement]: ts.ForStatement;
|
|
2458
|
-
[AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration;
|
|
2459
|
-
[AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2460
|
-
[AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
|
|
2461
|
-
[AST_NODE_TYPES.IfStatement]: ts.IfStatement;
|
|
2462
|
-
[AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier;
|
|
2463
|
-
[AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration;
|
|
2464
|
-
[AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry;
|
|
2465
|
-
[AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration;
|
|
2466
|
-
[AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause;
|
|
2467
|
-
[AST_NODE_TYPES.ImportExpression]: ts.CallExpression;
|
|
2468
|
-
[AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport;
|
|
2469
|
-
[AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier;
|
|
2470
|
-
[AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute;
|
|
2471
|
-
[AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement;
|
|
2472
|
-
[AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment;
|
|
2473
|
-
[AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
|
|
2474
|
-
[AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression;
|
|
2475
|
-
[AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression;
|
|
2476
|
-
[AST_NODE_TYPES.JSXFragment]: ts.JsxFragment;
|
|
2477
|
-
[AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
|
|
2478
|
-
[AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression;
|
|
2479
|
-
[AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName;
|
|
2480
|
-
[AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
|
|
2481
|
-
[AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment;
|
|
2482
|
-
[AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
|
|
2483
|
-
[AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression;
|
|
2484
|
-
[AST_NODE_TYPES.JSXText]: ts.JsxText;
|
|
2485
|
-
[AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement;
|
|
2486
|
-
[AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
|
|
2487
|
-
[AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression;
|
|
2488
|
-
[AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
|
|
2489
|
-
[AST_NODE_TYPES.MetaProperty]: ts.MetaProperty;
|
|
2490
|
-
[AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2491
|
-
[AST_NODE_TYPES.NewExpression]: ts.NewExpression;
|
|
2492
|
-
[AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression;
|
|
2493
|
-
[AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
|
|
2494
|
-
[AST_NODE_TYPES.Program]: ts.SourceFile;
|
|
2495
|
-
[AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
|
|
2496
|
-
[AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
|
|
2497
|
-
[AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement;
|
|
2498
|
-
[AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression;
|
|
2499
|
-
[AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
|
|
2500
|
-
[AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration;
|
|
2501
|
-
[AST_NODE_TYPES.Super]: ts.SuperExpression;
|
|
2502
|
-
[AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause;
|
|
2503
|
-
[AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement;
|
|
2504
|
-
[AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
|
|
2505
|
-
[AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
|
|
2506
|
-
[AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
|
|
2507
|
-
[AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
|
|
2508
|
-
[AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement;
|
|
2509
|
-
[AST_NODE_TYPES.TryStatement]: ts.TryStatement;
|
|
2510
|
-
[AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
|
|
2511
|
-
[AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2512
|
-
[AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
|
|
2513
|
-
[AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode;
|
|
2514
|
-
[AST_NODE_TYPES.TSAsExpression]: ts.AsExpression;
|
|
2515
|
-
[AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
|
|
2516
|
-
[AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments;
|
|
2517
|
-
[AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode;
|
|
2518
|
-
[AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode;
|
|
2519
|
-
[AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
|
|
2520
|
-
[AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration;
|
|
2521
|
-
[AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration;
|
|
2522
|
-
[AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration;
|
|
2523
|
-
[AST_NODE_TYPES.TSEnumMember]: ts.EnumMember;
|
|
2524
|
-
[AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment;
|
|
2525
|
-
[AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference;
|
|
2526
|
-
[AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode;
|
|
2527
|
-
[AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
|
|
2528
|
-
[AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode;
|
|
2529
|
-
[AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
|
|
2530
|
-
[AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration;
|
|
2531
|
-
[AST_NODE_TYPES.TSInferType]: ts.InferTypeNode;
|
|
2532
|
-
[AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
|
|
2533
|
-
[AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration;
|
|
2534
|
-
[AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
|
|
2535
|
-
[AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
|
|
2536
|
-
[AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
|
|
2537
|
-
[AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
|
|
2538
|
-
[AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
|
|
2539
|
-
[AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
|
|
2540
|
-
[AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock;
|
|
2541
|
-
[AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration;
|
|
2542
|
-
[AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember;
|
|
2543
|
-
[AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
|
|
2544
|
-
[AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression;
|
|
2545
|
-
[AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode;
|
|
2546
|
-
[AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration;
|
|
2547
|
-
[AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature;
|
|
2548
|
-
[AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
|
|
2549
|
-
[AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
|
|
2550
|
-
[AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression;
|
|
2551
|
-
[AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
|
|
2552
|
-
[AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode;
|
|
2553
|
-
[AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode;
|
|
2554
|
-
[AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
|
|
2555
|
-
[AST_NODE_TYPES.TSTypeAnnotation]: undefined;
|
|
2556
|
-
[AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion;
|
|
2557
|
-
[AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode;
|
|
2558
|
-
[AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode;
|
|
2559
|
-
[AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration;
|
|
2560
|
-
[AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined;
|
|
2561
|
-
[AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
|
|
2562
|
-
[AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode;
|
|
2563
|
-
[AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
|
|
2564
|
-
[AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode;
|
|
2565
|
-
[AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode;
|
|
2566
|
-
[AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
|
|
2567
|
-
[AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
|
|
2568
|
-
[AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
|
|
2569
|
-
[AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration;
|
|
2570
|
-
[AST_NODE_TYPES.WhileStatement]: ts.WhileStatement;
|
|
2571
|
-
[AST_NODE_TYPES.WithStatement]: ts.WithStatement;
|
|
2572
|
-
[AST_NODE_TYPES.YieldExpression]: ts.YieldExpression;
|
|
2573
|
-
[AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2574
|
-
[AST_NODE_TYPES.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
|
|
2575
|
-
[AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode;
|
|
2576
|
-
[AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode;
|
|
2577
|
-
[AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode;
|
|
2578
|
-
[AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode;
|
|
2579
|
-
[AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode;
|
|
2580
|
-
[AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
|
|
2581
|
-
[AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode;
|
|
2582
|
-
[AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode;
|
|
2583
|
-
[AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode;
|
|
2584
|
-
[AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode;
|
|
2585
|
-
[AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode;
|
|
2586
|
-
[AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode;
|
|
2587
|
-
[AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode;
|
|
2588
|
-
[AST_NODE_TYPES.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
|
|
2589
|
-
[AST_NODE_TYPES.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
|
|
2590
|
-
[AST_NODE_TYPES.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
|
|
2591
|
-
[AST_NODE_TYPES.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
|
|
2592
|
-
[AST_NODE_TYPES.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
|
|
2593
|
-
[AST_NODE_TYPES.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
|
|
2594
|
-
[AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
|
|
2595
|
-
[AST_NODE_TYPES.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
|
|
4762
|
+
[AST_NODE_TYPES$1.AccessorProperty]: ts.PropertyDeclaration;
|
|
4763
|
+
[AST_NODE_TYPES$1.ArrayExpression]: ts.ArrayLiteralExpression;
|
|
4764
|
+
[AST_NODE_TYPES$1.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
|
|
4765
|
+
[AST_NODE_TYPES$1.ArrowFunctionExpression]: ts.ArrowFunction;
|
|
4766
|
+
[AST_NODE_TYPES$1.AssignmentExpression]: ts.BinaryExpression;
|
|
4767
|
+
[AST_NODE_TYPES$1.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
|
|
4768
|
+
[AST_NODE_TYPES$1.AwaitExpression]: ts.AwaitExpression;
|
|
4769
|
+
[AST_NODE_TYPES$1.BinaryExpression]: ts.BinaryExpression;
|
|
4770
|
+
[AST_NODE_TYPES$1.BlockStatement]: ts.Block;
|
|
4771
|
+
[AST_NODE_TYPES$1.BreakStatement]: ts.BreakStatement;
|
|
4772
|
+
[AST_NODE_TYPES$1.CallExpression]: ts.CallExpression;
|
|
4773
|
+
[AST_NODE_TYPES$1.CatchClause]: ts.CatchClause;
|
|
4774
|
+
[AST_NODE_TYPES$1.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
|
|
4775
|
+
[AST_NODE_TYPES$1.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
|
|
4776
|
+
[AST_NODE_TYPES$1.ClassDeclaration]: ts.ClassDeclaration;
|
|
4777
|
+
[AST_NODE_TYPES$1.ClassExpression]: ts.ClassExpression;
|
|
4778
|
+
[AST_NODE_TYPES$1.ConditionalExpression]: ts.ConditionalExpression;
|
|
4779
|
+
[AST_NODE_TYPES$1.ContinueStatement]: ts.ContinueStatement;
|
|
4780
|
+
[AST_NODE_TYPES$1.DebuggerStatement]: ts.DebuggerStatement;
|
|
4781
|
+
[AST_NODE_TYPES$1.Decorator]: ts.Decorator;
|
|
4782
|
+
[AST_NODE_TYPES$1.DoWhileStatement]: ts.DoStatement;
|
|
4783
|
+
[AST_NODE_TYPES$1.EmptyStatement]: ts.EmptyStatement;
|
|
4784
|
+
[AST_NODE_TYPES$1.ExportAllDeclaration]: ts.ExportDeclaration;
|
|
4785
|
+
[AST_NODE_TYPES$1.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
4786
|
+
[AST_NODE_TYPES$1.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
4787
|
+
[AST_NODE_TYPES$1.ExportSpecifier]: ts.ExportSpecifier;
|
|
4788
|
+
[AST_NODE_TYPES$1.ExpressionStatement]: ts.ExpressionStatement;
|
|
4789
|
+
[AST_NODE_TYPES$1.ForInStatement]: ts.ForInStatement;
|
|
4790
|
+
[AST_NODE_TYPES$1.ForOfStatement]: ts.ForOfStatement;
|
|
4791
|
+
[AST_NODE_TYPES$1.ForStatement]: ts.ForStatement;
|
|
4792
|
+
[AST_NODE_TYPES$1.FunctionDeclaration]: ts.FunctionDeclaration;
|
|
4793
|
+
[AST_NODE_TYPES$1.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
4794
|
+
[AST_NODE_TYPES$1.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
|
|
4795
|
+
[AST_NODE_TYPES$1.IfStatement]: ts.IfStatement;
|
|
4796
|
+
[AST_NODE_TYPES$1.PrivateIdentifier]: ts.PrivateIdentifier;
|
|
4797
|
+
[AST_NODE_TYPES$1.PropertyDefinition]: ts.PropertyDeclaration;
|
|
4798
|
+
[AST_NODE_TYPES$1.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry;
|
|
4799
|
+
[AST_NODE_TYPES$1.ImportDeclaration]: ts.ImportDeclaration;
|
|
4800
|
+
[AST_NODE_TYPES$1.ImportDefaultSpecifier]: ts.ImportClause;
|
|
4801
|
+
[AST_NODE_TYPES$1.ImportExpression]: ts.CallExpression;
|
|
4802
|
+
[AST_NODE_TYPES$1.ImportNamespaceSpecifier]: ts.NamespaceImport;
|
|
4803
|
+
[AST_NODE_TYPES$1.ImportSpecifier]: ts.ImportSpecifier;
|
|
4804
|
+
[AST_NODE_TYPES$1.JSXAttribute]: ts.JsxAttribute;
|
|
4805
|
+
[AST_NODE_TYPES$1.JSXClosingElement]: ts.JsxClosingElement;
|
|
4806
|
+
[AST_NODE_TYPES$1.JSXClosingFragment]: ts.JsxClosingFragment;
|
|
4807
|
+
[AST_NODE_TYPES$1.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
|
|
4808
|
+
[AST_NODE_TYPES$1.JSXEmptyExpression]: ts.JsxExpression;
|
|
4809
|
+
[AST_NODE_TYPES$1.JSXExpressionContainer]: ts.JsxExpression;
|
|
4810
|
+
[AST_NODE_TYPES$1.JSXFragment]: ts.JsxFragment;
|
|
4811
|
+
[AST_NODE_TYPES$1.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
|
|
4812
|
+
[AST_NODE_TYPES$1.JSXMemberExpression]: ts.PropertyAccessExpression;
|
|
4813
|
+
[AST_NODE_TYPES$1.JSXNamespacedName]: ts.JsxNamespacedName;
|
|
4814
|
+
[AST_NODE_TYPES$1.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
|
|
4815
|
+
[AST_NODE_TYPES$1.JSXOpeningFragment]: ts.JsxOpeningFragment;
|
|
4816
|
+
[AST_NODE_TYPES$1.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
|
|
4817
|
+
[AST_NODE_TYPES$1.JSXSpreadChild]: ts.JsxExpression;
|
|
4818
|
+
[AST_NODE_TYPES$1.JSXText]: ts.JsxText;
|
|
4819
|
+
[AST_NODE_TYPES$1.LabeledStatement]: ts.LabeledStatement;
|
|
4820
|
+
[AST_NODE_TYPES$1.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
|
|
4821
|
+
[AST_NODE_TYPES$1.LogicalExpression]: ts.BinaryExpression;
|
|
4822
|
+
[AST_NODE_TYPES$1.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
|
|
4823
|
+
[AST_NODE_TYPES$1.MetaProperty]: ts.MetaProperty;
|
|
4824
|
+
[AST_NODE_TYPES$1.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
4825
|
+
[AST_NODE_TYPES$1.NewExpression]: ts.NewExpression;
|
|
4826
|
+
[AST_NODE_TYPES$1.ObjectExpression]: ts.ObjectLiteralExpression;
|
|
4827
|
+
[AST_NODE_TYPES$1.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
|
|
4828
|
+
[AST_NODE_TYPES$1.Program]: ts.SourceFile;
|
|
4829
|
+
[AST_NODE_TYPES$1.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
|
|
4830
|
+
[AST_NODE_TYPES$1.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
|
|
4831
|
+
[AST_NODE_TYPES$1.ReturnStatement]: ts.ReturnStatement;
|
|
4832
|
+
[AST_NODE_TYPES$1.SequenceExpression]: ts.BinaryExpression;
|
|
4833
|
+
[AST_NODE_TYPES$1.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
|
|
4834
|
+
[AST_NODE_TYPES$1.StaticBlock]: ts.ClassStaticBlockDeclaration;
|
|
4835
|
+
[AST_NODE_TYPES$1.Super]: ts.SuperExpression;
|
|
4836
|
+
[AST_NODE_TYPES$1.SwitchCase]: ts.CaseClause | ts.DefaultClause;
|
|
4837
|
+
[AST_NODE_TYPES$1.SwitchStatement]: ts.SwitchStatement;
|
|
4838
|
+
[AST_NODE_TYPES$1.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
|
|
4839
|
+
[AST_NODE_TYPES$1.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
|
|
4840
|
+
[AST_NODE_TYPES$1.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
|
|
4841
|
+
[AST_NODE_TYPES$1.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
|
|
4842
|
+
[AST_NODE_TYPES$1.ThrowStatement]: ts.ThrowStatement;
|
|
4843
|
+
[AST_NODE_TYPES$1.TryStatement]: ts.TryStatement;
|
|
4844
|
+
[AST_NODE_TYPES$1.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
|
|
4845
|
+
[AST_NODE_TYPES$1.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
4846
|
+
[AST_NODE_TYPES$1.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
|
|
4847
|
+
[AST_NODE_TYPES$1.TSArrayType]: ts.ArrayTypeNode;
|
|
4848
|
+
[AST_NODE_TYPES$1.TSAsExpression]: ts.AsExpression;
|
|
4849
|
+
[AST_NODE_TYPES$1.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
|
|
4850
|
+
[AST_NODE_TYPES$1.TSClassImplements]: ts.ExpressionWithTypeArguments;
|
|
4851
|
+
[AST_NODE_TYPES$1.TSConditionalType]: ts.ConditionalTypeNode;
|
|
4852
|
+
[AST_NODE_TYPES$1.TSConstructorType]: ts.ConstructorTypeNode;
|
|
4853
|
+
[AST_NODE_TYPES$1.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
|
|
4854
|
+
[AST_NODE_TYPES$1.TSDeclareFunction]: ts.FunctionDeclaration;
|
|
4855
|
+
[AST_NODE_TYPES$1.TSEnumBody]: ts.EnumDeclaration;
|
|
4856
|
+
[AST_NODE_TYPES$1.TSEnumDeclaration]: ts.EnumDeclaration;
|
|
4857
|
+
[AST_NODE_TYPES$1.TSEnumMember]: ts.EnumMember;
|
|
4858
|
+
[AST_NODE_TYPES$1.TSExportAssignment]: ts.ExportAssignment;
|
|
4859
|
+
[AST_NODE_TYPES$1.TSExternalModuleReference]: ts.ExternalModuleReference;
|
|
4860
|
+
[AST_NODE_TYPES$1.TSFunctionType]: ts.FunctionTypeNode;
|
|
4861
|
+
[AST_NODE_TYPES$1.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
|
|
4862
|
+
[AST_NODE_TYPES$1.TSImportType]: ts.ImportTypeNode;
|
|
4863
|
+
[AST_NODE_TYPES$1.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
|
|
4864
|
+
[AST_NODE_TYPES$1.TSIndexSignature]: ts.IndexSignatureDeclaration;
|
|
4865
|
+
[AST_NODE_TYPES$1.TSInferType]: ts.InferTypeNode;
|
|
4866
|
+
[AST_NODE_TYPES$1.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
|
|
4867
|
+
[AST_NODE_TYPES$1.TSInterfaceBody]: ts.InterfaceDeclaration;
|
|
4868
|
+
[AST_NODE_TYPES$1.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
|
|
4869
|
+
[AST_NODE_TYPES$1.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
|
|
4870
|
+
[AST_NODE_TYPES$1.TSIntersectionType]: ts.IntersectionTypeNode;
|
|
4871
|
+
[AST_NODE_TYPES$1.TSLiteralType]: ts.LiteralTypeNode;
|
|
4872
|
+
[AST_NODE_TYPES$1.TSMappedType]: ts.MappedTypeNode;
|
|
4873
|
+
[AST_NODE_TYPES$1.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
|
|
4874
|
+
[AST_NODE_TYPES$1.TSModuleBlock]: ts.ModuleBlock;
|
|
4875
|
+
[AST_NODE_TYPES$1.TSModuleDeclaration]: ts.ModuleDeclaration;
|
|
4876
|
+
[AST_NODE_TYPES$1.TSNamedTupleMember]: ts.NamedTupleMember;
|
|
4877
|
+
[AST_NODE_TYPES$1.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
|
|
4878
|
+
[AST_NODE_TYPES$1.TSNonNullExpression]: ts.NonNullExpression;
|
|
4879
|
+
[AST_NODE_TYPES$1.TSOptionalType]: ts.OptionalTypeNode;
|
|
4880
|
+
[AST_NODE_TYPES$1.TSParameterProperty]: ts.ParameterDeclaration;
|
|
4881
|
+
[AST_NODE_TYPES$1.TSPropertySignature]: ts.PropertySignature;
|
|
4882
|
+
[AST_NODE_TYPES$1.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
|
|
4883
|
+
[AST_NODE_TYPES$1.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
|
|
4884
|
+
[AST_NODE_TYPES$1.TSSatisfiesExpression]: ts.SatisfiesExpression;
|
|
4885
|
+
[AST_NODE_TYPES$1.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
|
|
4886
|
+
[AST_NODE_TYPES$1.TSThisType]: ts.ThisTypeNode;
|
|
4887
|
+
[AST_NODE_TYPES$1.TSTupleType]: ts.TupleTypeNode;
|
|
4888
|
+
[AST_NODE_TYPES$1.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
|
|
4889
|
+
[AST_NODE_TYPES$1.TSTypeAnnotation]: undefined;
|
|
4890
|
+
[AST_NODE_TYPES$1.TSTypeAssertion]: ts.TypeAssertion;
|
|
4891
|
+
[AST_NODE_TYPES$1.TSTypeLiteral]: ts.TypeLiteralNode;
|
|
4892
|
+
[AST_NODE_TYPES$1.TSTypeOperator]: ts.TypeOperatorNode;
|
|
4893
|
+
[AST_NODE_TYPES$1.TSTypeParameter]: ts.TypeParameterDeclaration;
|
|
4894
|
+
[AST_NODE_TYPES$1.TSTypeParameterDeclaration]: undefined;
|
|
4895
|
+
[AST_NODE_TYPES$1.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
|
|
4896
|
+
[AST_NODE_TYPES$1.TSTypePredicate]: ts.TypePredicateNode;
|
|
4897
|
+
[AST_NODE_TYPES$1.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
|
|
4898
|
+
[AST_NODE_TYPES$1.TSTypeReference]: ts.TypeReferenceNode;
|
|
4899
|
+
[AST_NODE_TYPES$1.TSUnionType]: ts.UnionTypeNode;
|
|
4900
|
+
[AST_NODE_TYPES$1.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
|
|
4901
|
+
[AST_NODE_TYPES$1.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
|
|
4902
|
+
[AST_NODE_TYPES$1.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
|
|
4903
|
+
[AST_NODE_TYPES$1.VariableDeclarator]: ts.VariableDeclaration;
|
|
4904
|
+
[AST_NODE_TYPES$1.WhileStatement]: ts.WhileStatement;
|
|
4905
|
+
[AST_NODE_TYPES$1.WithStatement]: ts.WithStatement;
|
|
4906
|
+
[AST_NODE_TYPES$1.YieldExpression]: ts.YieldExpression;
|
|
4907
|
+
[AST_NODE_TYPES$1.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
4908
|
+
[AST_NODE_TYPES$1.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
|
|
4909
|
+
[AST_NODE_TYPES$1.TSAnyKeyword]: ts.KeywordTypeNode;
|
|
4910
|
+
[AST_NODE_TYPES$1.TSBigIntKeyword]: ts.KeywordTypeNode;
|
|
4911
|
+
[AST_NODE_TYPES$1.TSBooleanKeyword]: ts.KeywordTypeNode;
|
|
4912
|
+
[AST_NODE_TYPES$1.TSIntrinsicKeyword]: ts.KeywordTypeNode;
|
|
4913
|
+
[AST_NODE_TYPES$1.TSNeverKeyword]: ts.KeywordTypeNode;
|
|
4914
|
+
[AST_NODE_TYPES$1.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
|
|
4915
|
+
[AST_NODE_TYPES$1.TSNumberKeyword]: ts.KeywordTypeNode;
|
|
4916
|
+
[AST_NODE_TYPES$1.TSObjectKeyword]: ts.KeywordTypeNode;
|
|
4917
|
+
[AST_NODE_TYPES$1.TSStringKeyword]: ts.KeywordTypeNode;
|
|
4918
|
+
[AST_NODE_TYPES$1.TSSymbolKeyword]: ts.KeywordTypeNode;
|
|
4919
|
+
[AST_NODE_TYPES$1.TSUndefinedKeyword]: ts.KeywordTypeNode;
|
|
4920
|
+
[AST_NODE_TYPES$1.TSUnknownKeyword]: ts.KeywordTypeNode;
|
|
4921
|
+
[AST_NODE_TYPES$1.TSVoidKeyword]: ts.KeywordTypeNode;
|
|
4922
|
+
[AST_NODE_TYPES$1.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
|
|
4923
|
+
[AST_NODE_TYPES$1.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
|
|
4924
|
+
[AST_NODE_TYPES$1.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
|
|
4925
|
+
[AST_NODE_TYPES$1.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
|
|
4926
|
+
[AST_NODE_TYPES$1.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
|
|
4927
|
+
[AST_NODE_TYPES$1.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
|
|
4928
|
+
[AST_NODE_TYPES$1.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
|
|
4929
|
+
[AST_NODE_TYPES$1.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
|
|
2596
4930
|
}
|
|
2597
4931
|
/**
|
|
2598
4932
|
* Maps TSESTree AST Node type to the expected TypeScript AST Node type(s).
|
|
2599
4933
|
* This mapping is based on the internal logic of the parser.
|
|
2600
4934
|
*/
|
|
2601
|
-
type TSESTreeToTSNode<T extends Node = Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
|
4935
|
+
type TSESTreeToTSNode<T extends Node$1 = Node$1> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
|
2602
4936
|
|
|
2603
4937
|
declare module 'typescript' {
|
|
2604
4938
|
enum JSDocParsingMode {
|
|
@@ -2613,7 +4947,7 @@ interface ParserWeakMap<Key, ValueBase> {
|
|
|
2613
4947
|
get<Value extends ValueBase>(key: Key): Value;
|
|
2614
4948
|
has(key: unknown): boolean;
|
|
2615
4949
|
}
|
|
2616
|
-
interface ParserWeakMapESTreeToTSNode<Key extends Node = Node> {
|
|
4950
|
+
interface ParserWeakMapESTreeToTSNode<Key extends Node$1 = Node$1> {
|
|
2617
4951
|
get<KeyBase extends Key>(key: KeyBase): TSESTreeToTSNode<KeyBase>;
|
|
2618
4952
|
has(key: unknown): boolean;
|
|
2619
4953
|
}
|
|
@@ -2624,15 +4958,15 @@ interface ParserServicesBase {
|
|
|
2624
4958
|
}
|
|
2625
4959
|
interface ParserServicesNodeMaps {
|
|
2626
4960
|
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
|
2627
|
-
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node>;
|
|
4961
|
+
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node$1>;
|
|
2628
4962
|
}
|
|
2629
4963
|
interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
|
|
2630
|
-
getSymbolAtLocation: (node: Node) => ts.Symbol | undefined;
|
|
2631
|
-
getTypeAtLocation: (node: Node) => ts.Type;
|
|
2632
|
-
getContextualType: (node: Expression) => ts.Type | undefined;
|
|
2633
|
-
getResolvedSignature: (node: CallExpression | NewExpression) => ts.Signature | undefined;
|
|
2634
|
-
getTypeFromTypeNode: (node: TypeNode) => ts.Type;
|
|
2635
|
-
getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node) => ts.Type;
|
|
4964
|
+
getSymbolAtLocation: (node: Node$1) => ts.Symbol | undefined;
|
|
4965
|
+
getTypeAtLocation: (node: Node$1) => ts.Type;
|
|
4966
|
+
getContextualType: (node: Expression$1) => ts.Type | undefined;
|
|
4967
|
+
getResolvedSignature: (node: CallExpression$1 | NewExpression$1) => ts.Signature | undefined;
|
|
4968
|
+
getTypeFromTypeNode: (node: TypeNode$1) => ts.Type;
|
|
4969
|
+
getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node$1) => ts.Type;
|
|
2636
4970
|
program: ts.Program;
|
|
2637
4971
|
}
|
|
2638
4972
|
interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
|
|
@@ -2641,10 +4975,10 @@ interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, P
|
|
|
2641
4975
|
type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
|
|
2642
4976
|
|
|
2643
4977
|
declare namespace AST {
|
|
2644
|
-
type TokenType = AST_TOKEN_TYPES;
|
|
2645
|
-
type Token = Token;
|
|
2646
|
-
type SourceLocation = SourceLocation;
|
|
2647
|
-
type Range = Range;
|
|
4978
|
+
type TokenType = AST_TOKEN_TYPES$1;
|
|
4979
|
+
type Token = Token$1;
|
|
4980
|
+
type SourceLocation = SourceLocation$1;
|
|
4981
|
+
type Range = Range$1;
|
|
2648
4982
|
}
|
|
2649
4983
|
|
|
2650
4984
|
declare enum DefinitionType {
|
|
@@ -2661,7 +4995,7 @@ declare enum DefinitionType {
|
|
|
2661
4995
|
Variable = "Variable"
|
|
2662
4996
|
}
|
|
2663
4997
|
|
|
2664
|
-
declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node | null, Name extends Node> {
|
|
4998
|
+
declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node$1 | null, Name extends Node$1> {
|
|
2665
4999
|
/**
|
|
2666
5000
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
2667
5001
|
*/
|
|
@@ -2693,75 +5027,75 @@ declare abstract class DefinitionBase<Type extends DefinitionType, Node extends
|
|
|
2693
5027
|
abstract readonly isVariableDefinition: boolean;
|
|
2694
5028
|
}
|
|
2695
5029
|
|
|
2696
|
-
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause, null, Identifier> {
|
|
5030
|
+
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause$1, null, Identifier$1> {
|
|
2697
5031
|
readonly isTypeDefinition = false;
|
|
2698
5032
|
readonly isVariableDefinition = true;
|
|
2699
|
-
constructor(name: Identifier, node: CatchClauseDefinition['node']);
|
|
5033
|
+
constructor(name: Identifier$1, node: CatchClauseDefinition['node']);
|
|
2700
5034
|
}
|
|
2701
5035
|
|
|
2702
|
-
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration | ClassExpression, null, Identifier> {
|
|
5036
|
+
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration$1 | ClassExpression$1, null, Identifier$1> {
|
|
2703
5037
|
readonly isTypeDefinition = true;
|
|
2704
5038
|
readonly isVariableDefinition = true;
|
|
2705
|
-
constructor(name: Identifier, node: ClassNameDefinition['node']);
|
|
5039
|
+
constructor(name: Identifier$1, node: ClassNameDefinition['node']);
|
|
2706
5040
|
}
|
|
2707
5041
|
|
|
2708
|
-
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression, null, Identifier> {
|
|
5042
|
+
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration$1 | FunctionExpression$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1, null, Identifier$1> {
|
|
2709
5043
|
readonly isTypeDefinition = false;
|
|
2710
5044
|
readonly isVariableDefinition = true;
|
|
2711
|
-
constructor(name: Identifier, node: FunctionNameDefinition['node']);
|
|
5045
|
+
constructor(name: Identifier$1, node: FunctionNameDefinition['node']);
|
|
2712
5046
|
}
|
|
2713
5047
|
|
|
2714
|
-
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName> {
|
|
5048
|
+
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName$1> {
|
|
2715
5049
|
readonly isTypeDefinition = false;
|
|
2716
5050
|
readonly isVariableDefinition = true;
|
|
2717
|
-
constructor(name: BindingName, node: ImplicitGlobalVariableDefinition['node']);
|
|
5051
|
+
constructor(name: BindingName$1, node: ImplicitGlobalVariableDefinition['node']);
|
|
2718
5052
|
}
|
|
2719
5053
|
|
|
2720
|
-
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | TSImportEqualsDeclaration, ImportDeclaration | TSImportEqualsDeclaration, Identifier> {
|
|
5054
|
+
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier$1 | ImportNamespaceSpecifier$1 | ImportSpecifier$1 | TSImportEqualsDeclaration$1, ImportDeclaration$1 | TSImportEqualsDeclaration$1, Identifier$1> {
|
|
2721
5055
|
readonly isTypeDefinition = true;
|
|
2722
5056
|
readonly isVariableDefinition = true;
|
|
2723
|
-
constructor(name: Identifier, node: TSImportEqualsDeclaration, decl: TSImportEqualsDeclaration);
|
|
2724
|
-
constructor(name: Identifier, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration>, decl: ImportDeclaration);
|
|
5057
|
+
constructor(name: Identifier$1, node: TSImportEqualsDeclaration$1, decl: TSImportEqualsDeclaration$1);
|
|
5058
|
+
constructor(name: Identifier$1, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration$1>, decl: ImportDeclaration$1);
|
|
2725
5059
|
}
|
|
2726
5060
|
|
|
2727
|
-
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSEmptyBodyFunctionExpression | TSFunctionType | TSMethodSignature, null, BindingName> {
|
|
5061
|
+
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | TSCallSignatureDeclaration$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1 | TSFunctionType$1 | TSMethodSignature$1, null, BindingName$1> {
|
|
2728
5062
|
/**
|
|
2729
5063
|
* Whether the parameter definition is a part of a rest parameter.
|
|
2730
5064
|
*/
|
|
2731
5065
|
readonly isTypeDefinition = false;
|
|
2732
5066
|
readonly isVariableDefinition = true;
|
|
2733
5067
|
readonly rest: boolean;
|
|
2734
|
-
constructor(name: BindingName, node: ParameterDefinition['node'], rest: boolean);
|
|
5068
|
+
constructor(name: BindingName$1, node: ParameterDefinition['node'], rest: boolean);
|
|
2735
5069
|
}
|
|
2736
5070
|
|
|
2737
|
-
declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember, null, Identifier | StringLiteral> {
|
|
5071
|
+
declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember$1, null, Identifier$1 | StringLiteral$1> {
|
|
2738
5072
|
readonly isTypeDefinition = true;
|
|
2739
5073
|
readonly isVariableDefinition = true;
|
|
2740
|
-
constructor(name: Identifier | StringLiteral, node: TSEnumMemberDefinition['node']);
|
|
5074
|
+
constructor(name: Identifier$1 | StringLiteral$1, node: TSEnumMemberDefinition['node']);
|
|
2741
5075
|
}
|
|
2742
5076
|
|
|
2743
|
-
declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration, null, Identifier> {
|
|
5077
|
+
declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration$1, null, Identifier$1> {
|
|
2744
5078
|
readonly isTypeDefinition = true;
|
|
2745
5079
|
readonly isVariableDefinition = true;
|
|
2746
|
-
constructor(name: Identifier, node: TSEnumNameDefinition['node']);
|
|
5080
|
+
constructor(name: Identifier$1, node: TSEnumNameDefinition['node']);
|
|
2747
5081
|
}
|
|
2748
5082
|
|
|
2749
|
-
declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration, null, Identifier> {
|
|
5083
|
+
declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration$1, null, Identifier$1> {
|
|
2750
5084
|
readonly isTypeDefinition = true;
|
|
2751
5085
|
readonly isVariableDefinition = true;
|
|
2752
|
-
constructor(name: Identifier, node: TSModuleNameDefinition['node']);
|
|
5086
|
+
constructor(name: Identifier$1, node: TSModuleNameDefinition['node']);
|
|
2753
5087
|
}
|
|
2754
5088
|
|
|
2755
|
-
declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration | TSMappedType | TSTypeAliasDeclaration | TSTypeParameter, null, Identifier> {
|
|
5089
|
+
declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration$1 | TSMappedType$1 | TSTypeAliasDeclaration$1 | TSTypeParameter$1, null, Identifier$1> {
|
|
2756
5090
|
readonly isTypeDefinition = true;
|
|
2757
5091
|
readonly isVariableDefinition = false;
|
|
2758
|
-
constructor(name: Identifier, node: TypeDefinition['node']);
|
|
5092
|
+
constructor(name: Identifier$1, node: TypeDefinition['node']);
|
|
2759
5093
|
}
|
|
2760
5094
|
|
|
2761
|
-
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator, VariableDeclaration, Identifier> {
|
|
5095
|
+
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator$1, VariableDeclaration$1, Identifier$1> {
|
|
2762
5096
|
readonly isTypeDefinition = false;
|
|
2763
5097
|
readonly isVariableDefinition = true;
|
|
2764
|
-
constructor(name: Identifier, node: VariableDefinition['node'], decl: VariableDeclaration);
|
|
5098
|
+
constructor(name: Identifier$1, node: VariableDefinition['node'], decl: VariableDeclaration$1);
|
|
2765
5099
|
}
|
|
2766
5100
|
|
|
2767
5101
|
type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
|
|
@@ -2773,7 +5107,7 @@ declare enum ReferenceFlag {
|
|
|
2773
5107
|
}
|
|
2774
5108
|
interface ReferenceImplicitGlobal {
|
|
2775
5109
|
node: NodeWithParent;
|
|
2776
|
-
pattern: BindingName;
|
|
5110
|
+
pattern: BindingName$1;
|
|
2777
5111
|
ref?: Reference;
|
|
2778
5112
|
}
|
|
2779
5113
|
declare enum ReferenceTypeFlag {
|
|
@@ -2798,7 +5132,7 @@ declare class Reference {
|
|
|
2798
5132
|
* Identifier syntax node.
|
|
2799
5133
|
* @public
|
|
2800
5134
|
*/
|
|
2801
|
-
readonly identifier: Identifier | JSXIdentifier;
|
|
5135
|
+
readonly identifier: Identifier$1 | JSXIdentifier$1;
|
|
2802
5136
|
/**
|
|
2803
5137
|
* `true` if this writing reference is a variable initializer or a default value.
|
|
2804
5138
|
* @public
|
|
@@ -2814,8 +5148,8 @@ declare class Reference {
|
|
|
2814
5148
|
* If reference is writeable, this is the node being written to it.
|
|
2815
5149
|
* @public
|
|
2816
5150
|
*/
|
|
2817
|
-
readonly writeExpr?: Node | null;
|
|
2818
|
-
constructor(identifier: Identifier | JSXIdentifier, scope: Scope$1, flag: ReferenceFlag, writeExpr?: Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag);
|
|
5151
|
+
readonly writeExpr?: Node$1 | null;
|
|
5152
|
+
constructor(identifier: Identifier$1 | JSXIdentifier$1, scope: Scope$1, flag: ReferenceFlag, writeExpr?: Node$1 | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag);
|
|
2819
5153
|
/**
|
|
2820
5154
|
* True if this reference can reference types
|
|
2821
5155
|
*/
|
|
@@ -2871,7 +5205,7 @@ declare class VariableBase {
|
|
|
2871
5205
|
* If this variable is redeclared, this array includes two or more nodes.
|
|
2872
5206
|
* @public
|
|
2873
5207
|
*/
|
|
2874
|
-
readonly identifiers: Identifier[];
|
|
5208
|
+
readonly identifiers: Identifier$1[];
|
|
2875
5209
|
/**
|
|
2876
5210
|
* The variable name, as given in the source code.
|
|
2877
5211
|
* @public
|
|
@@ -2918,7 +5252,7 @@ declare class ESLintScopeVariable extends VariableBase {
|
|
|
2918
5252
|
* If this key exists, it is a global variable added by ESLint.
|
|
2919
5253
|
* If `true`, this global variable was defined by a globals comment directive in the source code file.
|
|
2920
5254
|
*/
|
|
2921
|
-
eslintExplicitGlobalComments?: Comment[];
|
|
5255
|
+
eslintExplicitGlobalComments?: Comment$1[];
|
|
2922
5256
|
}
|
|
2923
5257
|
|
|
2924
5258
|
/**
|
|
@@ -2967,12 +5301,12 @@ declare enum ScopeType {
|
|
|
2967
5301
|
with = "with"
|
|
2968
5302
|
}
|
|
2969
5303
|
|
|
2970
|
-
declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | Program | TSDeclareFunction | TSEmptyBodyFunctionExpression, Scope$1> {
|
|
5304
|
+
declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression$1 | FunctionDeclaration$1 | FunctionExpression$1 | Program$1 | TSDeclareFunction$1 | TSEmptyBodyFunctionExpression$1, Scope$1> {
|
|
2971
5305
|
constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean);
|
|
2972
5306
|
protected isValidResolution(ref: Reference, variable: Variable): boolean;
|
|
2973
5307
|
}
|
|
2974
5308
|
|
|
2975
|
-
declare class GlobalScope extends ScopeBase<ScopeType.global, Program,
|
|
5309
|
+
declare class GlobalScope extends ScopeBase<ScopeType.global, Program$1,
|
|
2976
5310
|
/**
|
|
2977
5311
|
* The global scope has no parent.
|
|
2978
5312
|
*/
|
|
@@ -2984,16 +5318,16 @@ null> {
|
|
|
2984
5318
|
defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void;
|
|
2985
5319
|
}
|
|
2986
5320
|
|
|
2987
|
-
declare class ModuleScope extends ScopeBase<ScopeType.module, Program, Scope$1> {
|
|
5321
|
+
declare class ModuleScope extends ScopeBase<ScopeType.module, Program$1, Scope$1> {
|
|
2988
5322
|
constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']);
|
|
2989
5323
|
}
|
|
2990
5324
|
|
|
2991
|
-
declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration, Scope$1> {
|
|
5325
|
+
declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration$1, Scope$1> {
|
|
2992
5326
|
constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']);
|
|
2993
5327
|
}
|
|
2994
5328
|
|
|
2995
5329
|
type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope;
|
|
2996
|
-
declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upper extends Scope$1 | null> {
|
|
5330
|
+
declare abstract class ScopeBase<Type extends ScopeType, Block extends Node$1, Upper extends Scope$1 | null> {
|
|
2997
5331
|
#private;
|
|
2998
5332
|
/**
|
|
2999
5333
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
@@ -3065,70 +5399,70 @@ declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upp
|
|
|
3065
5399
|
* To override by function scopes.
|
|
3066
5400
|
* References in default parameters isn't resolved to variables which are in their function body.
|
|
3067
5401
|
*/
|
|
3068
|
-
protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier | null, def: Definition | null): void;
|
|
5402
|
+
protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier$1 | null, def: Definition | null): void;
|
|
3069
5403
|
protected delegateToUpperScope(ref: Reference): void;
|
|
3070
5404
|
protected isValidResolution(_ref: Reference, _variable: Variable): boolean;
|
|
3071
5405
|
private addDeclaredVariablesOfNode;
|
|
3072
|
-
defineIdentifier(node: Identifier, def: Definition): void;
|
|
3073
|
-
defineLiteralIdentifier(node: StringLiteral, def: Definition): void;
|
|
3074
|
-
referenceDualValueType(node: Identifier): void;
|
|
3075
|
-
referenceType(node: Identifier): void;
|
|
3076
|
-
referenceValue(node: Identifier | JSXIdentifier, assign?: ReferenceFlag, writeExpr?: Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
|
|
5406
|
+
defineIdentifier(node: Identifier$1, def: Definition): void;
|
|
5407
|
+
defineLiteralIdentifier(node: StringLiteral$1, def: Definition): void;
|
|
5408
|
+
referenceDualValueType(node: Identifier$1): void;
|
|
5409
|
+
referenceType(node: Identifier$1): void;
|
|
5410
|
+
referenceValue(node: Identifier$1 | JSXIdentifier$1, assign?: ReferenceFlag, writeExpr?: Expression$1 | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
|
|
3077
5411
|
}
|
|
3078
5412
|
|
|
3079
|
-
declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause, Scope$1> {
|
|
5413
|
+
declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause$1, Scope$1> {
|
|
3080
5414
|
constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']);
|
|
3081
5415
|
}
|
|
3082
5416
|
|
|
3083
|
-
declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration | ClassExpression, Scope$1> {
|
|
5417
|
+
declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration$1 | ClassExpression$1, Scope$1> {
|
|
3084
5418
|
constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']);
|
|
3085
5419
|
}
|
|
3086
5420
|
|
|
3087
|
-
declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock, Scope$1> {
|
|
5421
|
+
declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock$1, Scope$1> {
|
|
3088
5422
|
constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']);
|
|
3089
5423
|
}
|
|
3090
5424
|
|
|
3091
|
-
declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType, Scope$1> {
|
|
5425
|
+
declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType$1, Scope$1> {
|
|
3092
5426
|
constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']);
|
|
3093
5427
|
}
|
|
3094
5428
|
|
|
3095
|
-
declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement | ForOfStatement | ForStatement, Scope$1> {
|
|
5429
|
+
declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement$1 | ForOfStatement$1 | ForStatement$1, Scope$1> {
|
|
3096
5430
|
constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']);
|
|
3097
5431
|
}
|
|
3098
5432
|
|
|
3099
|
-
declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression, Scope$1> {
|
|
5433
|
+
declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression$1, Scope$1> {
|
|
3100
5434
|
readonly functionExpressionScope: true;
|
|
3101
5435
|
constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']);
|
|
3102
5436
|
}
|
|
3103
5437
|
|
|
3104
|
-
declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSFunctionType | TSMethodSignature, Scope$1> {
|
|
5438
|
+
declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration$1 | TSConstructorType$1 | TSConstructSignatureDeclaration$1 | TSFunctionType$1 | TSMethodSignature$1, Scope$1> {
|
|
3105
5439
|
constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']);
|
|
3106
5440
|
}
|
|
3107
5441
|
|
|
3108
|
-
declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType, Scope$1> {
|
|
5442
|
+
declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType$1, Scope$1> {
|
|
3109
5443
|
constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']);
|
|
3110
5444
|
}
|
|
3111
5445
|
|
|
3112
|
-
declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement, Scope$1> {
|
|
5446
|
+
declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement$1, Scope$1> {
|
|
3113
5447
|
constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']);
|
|
3114
5448
|
}
|
|
3115
5449
|
|
|
3116
|
-
declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration, Scope$1> {
|
|
5450
|
+
declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration$1, Scope$1> {
|
|
3117
5451
|
constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']);
|
|
3118
5452
|
}
|
|
3119
5453
|
|
|
3120
|
-
declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration | TSTypeAliasDeclaration, Scope$1> {
|
|
5454
|
+
declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration$1 | TSTypeAliasDeclaration$1, Scope$1> {
|
|
3121
5455
|
constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']);
|
|
3122
5456
|
}
|
|
3123
5457
|
|
|
3124
|
-
declare class WithScope extends ScopeBase<ScopeType.with, WithStatement, Scope$1> {
|
|
5458
|
+
declare class WithScope extends ScopeBase<ScopeType.with, WithStatement$1, Scope$1> {
|
|
3125
5459
|
constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']);
|
|
3126
5460
|
close(scopeManager: ScopeManager): Scope$1 | null;
|
|
3127
5461
|
}
|
|
3128
5462
|
|
|
3129
5463
|
type Scope$1 = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope;
|
|
3130
5464
|
|
|
3131
|
-
declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression, Scope$1> {
|
|
5465
|
+
declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression$1, Scope$1> {
|
|
3132
5466
|
constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']);
|
|
3133
5467
|
}
|
|
3134
5468
|
|
|
@@ -3143,12 +5477,12 @@ interface ScopeManagerOptions {
|
|
|
3143
5477
|
declare class ScopeManager {
|
|
3144
5478
|
#private;
|
|
3145
5479
|
currentScope: Scope$1 | null;
|
|
3146
|
-
readonly declaredVariables: WeakMap<Node, Variable[]>;
|
|
5480
|
+
readonly declaredVariables: WeakMap<Node$1, Variable[]>;
|
|
3147
5481
|
/**
|
|
3148
5482
|
* The root scope
|
|
3149
5483
|
*/
|
|
3150
5484
|
globalScope: GlobalScope | null;
|
|
3151
|
-
readonly nodeToScope: WeakMap<Node, Scope$1[]>;
|
|
5485
|
+
readonly nodeToScope: WeakMap<Node$1, Scope$1[]>;
|
|
3152
5486
|
/**
|
|
3153
5487
|
* All scopes
|
|
3154
5488
|
* @public
|
|
@@ -3166,7 +5500,7 @@ declare class ScopeManager {
|
|
|
3166
5500
|
* If the node does not define any variable, this returns an empty array.
|
|
3167
5501
|
* @param node An AST node to get their variables.
|
|
3168
5502
|
*/
|
|
3169
|
-
getDeclaredVariables(node: Node): Variable[];
|
|
5503
|
+
getDeclaredVariables(node: Node$1): Variable[];
|
|
3170
5504
|
/**
|
|
3171
5505
|
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
|
|
3172
5506
|
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
|
|
@@ -3175,7 +5509,7 @@ declare class ScopeManager {
|
|
|
3175
5509
|
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
|
|
3176
5510
|
* If `inner` is `true` then this returns the innermost scope.
|
|
3177
5511
|
*/
|
|
3178
|
-
acquire(node: Node, inner?: boolean): Scope$1 | null;
|
|
5512
|
+
acquire(node: Node$1, inner?: boolean): Scope$1 | null;
|
|
3179
5513
|
/**
|
|
3180
5514
|
* Adds dynamically created globals to the global scope and resolve their references.
|
|
3181
5515
|
* This method is called by ESLint.
|
|
@@ -3203,7 +5537,7 @@ declare class ScopeManager {
|
|
|
3203
5537
|
protected nestScope<T extends Scope$1>(scope: T): T;
|
|
3204
5538
|
}
|
|
3205
5539
|
|
|
3206
|
-
declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement, Scope$1> {
|
|
5540
|
+
declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement$1, Scope$1> {
|
|
3207
5541
|
constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']);
|
|
3208
5542
|
}
|
|
3209
5543
|
|
|
@@ -3309,13 +5643,13 @@ declare namespace Parser {
|
|
|
3309
5643
|
/**
|
|
3310
5644
|
* Parses the given text into an ESTree AST
|
|
3311
5645
|
*/
|
|
3312
|
-
parse(text: string, options?: ParserOptions): Program;
|
|
5646
|
+
parse(text: string, options?: ParserOptions): Program$1;
|
|
3313
5647
|
};
|
|
3314
5648
|
interface ParseResult {
|
|
3315
5649
|
/**
|
|
3316
5650
|
* The ESTree AST
|
|
3317
5651
|
*/
|
|
3318
|
-
ast: Program;
|
|
5652
|
+
ast: Program$1;
|
|
3319
5653
|
/**
|
|
3320
5654
|
* A `ScopeManager` object.
|
|
3321
5655
|
* Custom parsers can use customized scope analysis for experimental/enhancement syntaxes.
|
|
@@ -3735,32 +6069,32 @@ declare class TokenStore {
|
|
|
3735
6069
|
* @param right The node to check.
|
|
3736
6070
|
* @returns `true` if one or more comments exist.
|
|
3737
6071
|
*/
|
|
3738
|
-
commentsExistBetween(left: Node | Token, right: Node | Token): boolean;
|
|
6072
|
+
commentsExistBetween(left: Node$1 | Token$1, right: Node$1 | Token$1): boolean;
|
|
3739
6073
|
/**
|
|
3740
6074
|
* Gets all comment tokens directly after the given node or token.
|
|
3741
6075
|
* @param nodeOrToken The AST node or token to check for adjacent comment tokens.
|
|
3742
6076
|
* @returns An array of comments in occurrence order.
|
|
3743
6077
|
*/
|
|
3744
|
-
getCommentsAfter(nodeOrToken: Node | Token): Comment[];
|
|
6078
|
+
getCommentsAfter(nodeOrToken: Node$1 | Token$1): Comment$1[];
|
|
3745
6079
|
/**
|
|
3746
6080
|
* Gets all comment tokens directly before the given node or token.
|
|
3747
6081
|
* @param nodeOrToken The AST node or token to check for adjacent comment tokens.
|
|
3748
6082
|
* @returns An array of comments in occurrence order.
|
|
3749
6083
|
*/
|
|
3750
|
-
getCommentsBefore(nodeOrToken: Node | Token): Comment[];
|
|
6084
|
+
getCommentsBefore(nodeOrToken: Node$1 | Token$1): Comment$1[];
|
|
3751
6085
|
/**
|
|
3752
6086
|
* Gets all comment tokens inside the given node.
|
|
3753
6087
|
* @param node The AST node to get the comments for.
|
|
3754
6088
|
* @returns An array of comments in occurrence order.
|
|
3755
6089
|
*/
|
|
3756
|
-
getCommentsInside(node: Node): Comment[];
|
|
6090
|
+
getCommentsInside(node: Node$1): Comment$1[];
|
|
3757
6091
|
/**
|
|
3758
6092
|
* Gets the first token of the given node.
|
|
3759
6093
|
* @param node The AST node.
|
|
3760
6094
|
* @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
|
|
3761
6095
|
* @returns An object representing the token.
|
|
3762
6096
|
*/
|
|
3763
|
-
getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6097
|
+
getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3764
6098
|
/**
|
|
3765
6099
|
* Gets the first token between two non-overlapping nodes.
|
|
3766
6100
|
* @param left Node before the desired token range.
|
|
@@ -3768,13 +6102,13 @@ declare class TokenStore {
|
|
|
3768
6102
|
* @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
|
|
3769
6103
|
* @returns An object representing the token.
|
|
3770
6104
|
*/
|
|
3771
|
-
getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6105
|
+
getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3772
6106
|
/**
|
|
3773
6107
|
* Gets the first `count` tokens of the given node.
|
|
3774
6108
|
* @param node The AST node.
|
|
3775
6109
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3776
6110
|
*/
|
|
3777
|
-
getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6111
|
+
getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3778
6112
|
/**
|
|
3779
6113
|
* Gets the first `count` tokens between two non-overlapping nodes.
|
|
3780
6114
|
* @param left Node before the desired token range.
|
|
@@ -3782,14 +6116,14 @@ declare class TokenStore {
|
|
|
3782
6116
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3783
6117
|
* @returns Tokens between left and right.
|
|
3784
6118
|
*/
|
|
3785
|
-
getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6119
|
+
getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3786
6120
|
/**
|
|
3787
6121
|
* Gets the last token of the given node.
|
|
3788
6122
|
* @param node The AST node.
|
|
3789
6123
|
* @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
|
|
3790
6124
|
* @returns An object representing the token.
|
|
3791
6125
|
*/
|
|
3792
|
-
getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6126
|
+
getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3793
6127
|
/**
|
|
3794
6128
|
* Gets the last token between two non-overlapping nodes.
|
|
3795
6129
|
* @param left Node before the desired token range.
|
|
@@ -3797,13 +6131,13 @@ declare class TokenStore {
|
|
|
3797
6131
|
* @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
|
|
3798
6132
|
* @returns An object representing the token.
|
|
3799
6133
|
*/
|
|
3800
|
-
getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6134
|
+
getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3801
6135
|
/**
|
|
3802
6136
|
* Gets the last `count` tokens of the given node.
|
|
3803
6137
|
* @param node The AST node.
|
|
3804
6138
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3805
6139
|
*/
|
|
3806
|
-
getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6140
|
+
getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3807
6141
|
/**
|
|
3808
6142
|
* Gets the last `count` tokens between two non-overlapping nodes.
|
|
3809
6143
|
* @param left Node before the desired token range.
|
|
@@ -3811,21 +6145,21 @@ declare class TokenStore {
|
|
|
3811
6145
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3812
6146
|
* @returns Tokens between left and right.
|
|
3813
6147
|
*/
|
|
3814
|
-
getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6148
|
+
getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3815
6149
|
/**
|
|
3816
6150
|
* Gets the token that follows a given node or token.
|
|
3817
6151
|
* @param node The AST node or token.
|
|
3818
6152
|
* @param options The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`.
|
|
3819
6153
|
* @returns An object representing the token.
|
|
3820
6154
|
*/
|
|
3821
|
-
getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6155
|
+
getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3822
6156
|
/**
|
|
3823
6157
|
* Gets the token that precedes a given node or token.
|
|
3824
6158
|
* @param node The AST node or token.
|
|
3825
6159
|
* @param options The option object
|
|
3826
6160
|
* @returns An object representing the token.
|
|
3827
6161
|
*/
|
|
3828
|
-
getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6162
|
+
getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node$1 | Token$1, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
3829
6163
|
/**
|
|
3830
6164
|
* Gets the token starting at the specified index.
|
|
3831
6165
|
* @param offset Index of the start of the token's range.
|
|
@@ -3842,26 +6176,26 @@ declare class TokenStore {
|
|
|
3842
6176
|
* @param afterCount The number of tokens after the node to retrieve.
|
|
3843
6177
|
* @returns Array of objects representing tokens.
|
|
3844
6178
|
*/
|
|
3845
|
-
getTokens(node: Node, beforeCount?: number, afterCount?: number): Token[];
|
|
6179
|
+
getTokens(node: Node$1, beforeCount?: number, afterCount?: number): Token$1[];
|
|
3846
6180
|
/**
|
|
3847
6181
|
* Gets all tokens that are related to the given node.
|
|
3848
6182
|
* @param node The AST node.
|
|
3849
6183
|
* @param options The option object. If this is a function then it's `options.filter`.
|
|
3850
6184
|
* @returns Array of objects representing tokens.
|
|
3851
6185
|
*/
|
|
3852
|
-
getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6186
|
+
getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node$1, options: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3853
6187
|
/**
|
|
3854
6188
|
* Gets the `count` tokens that follows a given node or token.
|
|
3855
6189
|
* @param node The AST node.
|
|
3856
6190
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3857
6191
|
*/
|
|
3858
|
-
getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6192
|
+
getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3859
6193
|
/**
|
|
3860
6194
|
* Gets the `count` tokens that precedes a given node or token.
|
|
3861
6195
|
* @param node The AST node.
|
|
3862
6196
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3863
6197
|
*/
|
|
3864
|
-
getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6198
|
+
getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3865
6199
|
/**
|
|
3866
6200
|
* Gets all of the tokens between two non-overlapping nodes.
|
|
3867
6201
|
* @param left Node before the desired token range.
|
|
@@ -3869,7 +6203,7 @@ declare class TokenStore {
|
|
|
3869
6203
|
* @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`.
|
|
3870
6204
|
* @returns Tokens between left and right.
|
|
3871
6205
|
*/
|
|
3872
|
-
getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6206
|
+
getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node$1 | Token$1, right: Node$1 | Token$1, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
3873
6207
|
}
|
|
3874
6208
|
declare class SourceCodeBase extends TokenStore {
|
|
3875
6209
|
/**
|
|
@@ -3893,13 +6227,13 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3893
6227
|
* Retrieves an array containing all comments in the source code.
|
|
3894
6228
|
* @returns An array of comment nodes.
|
|
3895
6229
|
*/
|
|
3896
|
-
getAllComments(): Comment[];
|
|
6230
|
+
getAllComments(): Comment$1[];
|
|
3897
6231
|
/**
|
|
3898
6232
|
* Converts a (line, column) pair into a range index.
|
|
3899
6233
|
* @param location A line/column location
|
|
3900
6234
|
* @returns The range index of the location in the file.
|
|
3901
6235
|
*/
|
|
3902
|
-
getIndexFromLoc(location: Position): number;
|
|
6236
|
+
getIndexFromLoc(location: Position$1): number;
|
|
3903
6237
|
/**
|
|
3904
6238
|
* Gets the entire source text split into an array of lines.
|
|
3905
6239
|
* @returns The source text as an array of lines.
|
|
@@ -3910,13 +6244,13 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3910
6244
|
* @param index The index of a character in a file
|
|
3911
6245
|
* @returns A {line, column} location object with a 0-indexed column
|
|
3912
6246
|
*/
|
|
3913
|
-
getLocFromIndex(index: number): Position;
|
|
6247
|
+
getLocFromIndex(index: number): Position$1;
|
|
3914
6248
|
/**
|
|
3915
6249
|
* Gets the deepest node containing a range index.
|
|
3916
6250
|
* @param index Range index of the desired node.
|
|
3917
6251
|
* @returns The node if found or `null` if not found.
|
|
3918
6252
|
*/
|
|
3919
|
-
getNodeByRangeIndex(index: number): Node | null;
|
|
6253
|
+
getNodeByRangeIndex(index: number): Node$1 | null;
|
|
3920
6254
|
/**
|
|
3921
6255
|
* Gets the source code for the given node.
|
|
3922
6256
|
* @param node The AST node to get the text for.
|
|
@@ -3924,7 +6258,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3924
6258
|
* @param afterCount The number of characters after the node to retrieve.
|
|
3925
6259
|
* @returns The text representing the AST node.
|
|
3926
6260
|
*/
|
|
3927
|
-
getText(node?: Node | Token, beforeCount?: number, afterCount?: number): string;
|
|
6261
|
+
getText(node?: Node$1 | Token$1, beforeCount?: number, afterCount?: number): string;
|
|
3928
6262
|
/**
|
|
3929
6263
|
* The flag to indicate that the source code has Unicode BOM.
|
|
3930
6264
|
*/
|
|
@@ -3937,7 +6271,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3937
6271
|
* @param second The second node or token to check between.
|
|
3938
6272
|
* @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens.
|
|
3939
6273
|
*/
|
|
3940
|
-
isSpaceBetween(first: Node | Token, second: Node | Token): boolean;
|
|
6274
|
+
isSpaceBetween(first: Node$1 | Token$1, second: Node$1 | Token$1): boolean;
|
|
3941
6275
|
/**
|
|
3942
6276
|
* Determines if two nodes or tokens have at least one whitespace character
|
|
3943
6277
|
* between them. Order does not matter. Returns false if the given nodes or
|
|
@@ -3950,28 +6284,28 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3950
6284
|
* any of the tokens found between the two given nodes or tokens.
|
|
3951
6285
|
* @deprecated in favor of isSpaceBetween
|
|
3952
6286
|
*/
|
|
3953
|
-
isSpaceBetweenTokens(first: Token, second: Token): boolean;
|
|
6287
|
+
isSpaceBetweenTokens(first: Token$1, second: Token$1): boolean;
|
|
3954
6288
|
/**
|
|
3955
6289
|
* Returns the scope of the given node.
|
|
3956
6290
|
* This information can be used track references to variables.
|
|
3957
6291
|
*/
|
|
3958
|
-
getScope(node: Node): Scope.Scope;
|
|
6292
|
+
getScope(node: Node$1): Scope.Scope;
|
|
3959
6293
|
/**
|
|
3960
6294
|
* Returns an array of the ancestors of the given node, starting at
|
|
3961
6295
|
* the root of the AST and continuing through the direct parent of the current node.
|
|
3962
6296
|
* This array does not include the currently-traversed node itself.
|
|
3963
6297
|
*/
|
|
3964
|
-
getAncestors(node: Node): Node[];
|
|
6298
|
+
getAncestors(node: Node$1): Node$1[];
|
|
3965
6299
|
/**
|
|
3966
6300
|
* Returns a list of variables declared by the given node.
|
|
3967
6301
|
* This information can be used to track references to variables.
|
|
3968
6302
|
*/
|
|
3969
|
-
getDeclaredVariables(node: Node): readonly Scope.Variable[];
|
|
6303
|
+
getDeclaredVariables(node: Node$1): readonly Scope.Variable[];
|
|
3970
6304
|
/**
|
|
3971
6305
|
* Marks a variable with the given name in the current scope as used.
|
|
3972
6306
|
* This affects the no-unused-vars rule.
|
|
3973
6307
|
*/
|
|
3974
|
-
markVariableAsUsed(name: string, node: Node): boolean;
|
|
6308
|
+
markVariableAsUsed(name: string, node: Node$1): boolean;
|
|
3975
6309
|
/**
|
|
3976
6310
|
* The source code split into lines according to ECMA-262 specification.
|
|
3977
6311
|
* This is done to avoid each rule needing to do so separately.
|
|
@@ -3998,7 +6332,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
3998
6332
|
*
|
|
3999
6333
|
* TODO: rename to 'tokens'
|
|
4000
6334
|
*/
|
|
4001
|
-
tokensAndComments: Token[];
|
|
6335
|
+
tokensAndComments: Token$1[];
|
|
4002
6336
|
/**
|
|
4003
6337
|
* The visitor keys to traverse AST.
|
|
4004
6338
|
*/
|
|
@@ -4012,9 +6346,9 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
4012
6346
|
}
|
|
4013
6347
|
declare const SourceCode_base: typeof SourceCodeBase;
|
|
4014
6348
|
declare namespace SourceCode {
|
|
4015
|
-
interface Program extends Program {
|
|
4016
|
-
comments: Comment[];
|
|
4017
|
-
tokens: Token[];
|
|
6349
|
+
interface Program extends Program$1 {
|
|
6350
|
+
comments: Comment$1[];
|
|
6351
|
+
tokens: Token$1[];
|
|
4018
6352
|
}
|
|
4019
6353
|
interface SourceCodeConfig {
|
|
4020
6354
|
/**
|
|
@@ -4039,14 +6373,14 @@ declare namespace SourceCode {
|
|
|
4039
6373
|
visitorKeys: VisitorKeys | null;
|
|
4040
6374
|
}
|
|
4041
6375
|
type VisitorKeys = Parser.VisitorKeys;
|
|
4042
|
-
type FilterPredicate = (token: Token) => boolean;
|
|
4043
|
-
type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token) => token is infer U extends Token) ? U : Default;
|
|
6376
|
+
type FilterPredicate = (token: Token$1) => boolean;
|
|
6377
|
+
type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token$1) => token is infer U extends Token$1) ? U : Default;
|
|
4044
6378
|
type GetFilterPredicateFromOptions<Options, Default> = Options extends {
|
|
4045
6379
|
filter?: FilterPredicate;
|
|
4046
6380
|
} ? GetFilterPredicate<Options['filter'], Default> : GetFilterPredicate<Options, Default>;
|
|
4047
6381
|
type ReturnTypeFromOptions<T> = T extends {
|
|
4048
6382
|
includeComments: true;
|
|
4049
|
-
} ? GetFilterPredicateFromOptions<T, Token> : GetFilterPredicateFromOptions<T, Exclude<Token, Comment>>;
|
|
6383
|
+
} ? GetFilterPredicateFromOptions<T, Token$1> : GetFilterPredicateFromOptions<T, Exclude<Token$1, Comment$1>>;
|
|
4050
6384
|
type CursorWithSkipOptions = number | FilterPredicate | {
|
|
4051
6385
|
/**
|
|
4052
6386
|
* The predicate function to choose tokens.
|
|
@@ -4202,13 +6536,13 @@ interface RuleFix {
|
|
|
4202
6536
|
text: string;
|
|
4203
6537
|
}
|
|
4204
6538
|
interface RuleFixer {
|
|
4205
|
-
insertTextAfter(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6539
|
+
insertTextAfter(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
|
|
4206
6540
|
insertTextAfterRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
4207
|
-
insertTextBefore(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6541
|
+
insertTextBefore(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
|
|
4208
6542
|
insertTextBeforeRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
4209
|
-
remove(nodeOrToken: Node | Token): RuleFix;
|
|
6543
|
+
remove(nodeOrToken: Node$1 | Token$1): RuleFix;
|
|
4210
6544
|
removeRange(range: Readonly<AST.Range>): RuleFix;
|
|
4211
|
-
replaceText(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6545
|
+
replaceText(nodeOrToken: Node$1 | Token$1, text: string): RuleFix;
|
|
4212
6546
|
replaceTextRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
4213
6547
|
}
|
|
4214
6548
|
interface SuggestionReportDescriptor<MessageIds extends string> extends Omit<ReportDescriptorBase<MessageIds>, 'fix'> {
|
|
@@ -4241,17 +6575,17 @@ interface ReportDescriptorNodeOptionalLoc {
|
|
|
4241
6575
|
/**
|
|
4242
6576
|
* An override of the location of the report
|
|
4243
6577
|
*/
|
|
4244
|
-
readonly loc?: Readonly<Position> | Readonly<SourceLocation>;
|
|
6578
|
+
readonly loc?: Readonly<Position$1> | Readonly<SourceLocation$1>;
|
|
4245
6579
|
/**
|
|
4246
6580
|
* The Node or AST Token which the report is being attached to
|
|
4247
6581
|
*/
|
|
4248
|
-
readonly node: Node | Token;
|
|
6582
|
+
readonly node: Node$1 | Token$1;
|
|
4249
6583
|
}
|
|
4250
6584
|
interface ReportDescriptorLocOnly {
|
|
4251
6585
|
/**
|
|
4252
6586
|
* An override of the location of the report
|
|
4253
6587
|
*/
|
|
4254
|
-
loc: Readonly<Position> | Readonly<SourceLocation>;
|
|
6588
|
+
loc: Readonly<Position$1> | Readonly<SourceLocation$1>;
|
|
4255
6589
|
}
|
|
4256
6590
|
type ReportDescriptor<MessageIds extends string> = (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc) & ReportDescriptorWithSuggestion<MessageIds>;
|
|
4257
6591
|
/**
|
|
@@ -4301,14 +6635,14 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
4301
6635
|
*
|
|
4302
6636
|
* @deprecated in favor of `SourceCode#getAncestors`
|
|
4303
6637
|
*/
|
|
4304
|
-
getAncestors(): Node[];
|
|
6638
|
+
getAncestors(): Node$1[];
|
|
4305
6639
|
/**
|
|
4306
6640
|
* Returns a list of variables declared by the given node.
|
|
4307
6641
|
* This information can be used to track references to variables.
|
|
4308
6642
|
*
|
|
4309
6643
|
* @deprecated in favor of `SourceCode#getDeclaredVariables`
|
|
4310
6644
|
*/
|
|
4311
|
-
getDeclaredVariables(node: Node): readonly Scope.Variable[];
|
|
6645
|
+
getDeclaredVariables(node: Node$1): readonly Scope.Variable[];
|
|
4312
6646
|
/**
|
|
4313
6647
|
* Returns the current working directory passed to Linter.
|
|
4314
6648
|
* It is a path to a directory that should be considered as the current working directory.
|
|
@@ -4370,176 +6704,176 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
4370
6704
|
*/
|
|
4371
6705
|
report(descriptor: ReportDescriptor<MessageIds>): void;
|
|
4372
6706
|
}
|
|
4373
|
-
type RuleFunction<T extends NodeOrTokenData = never> = (node: T) => void;
|
|
6707
|
+
type RuleFunction<T extends NodeOrTokenData$1 = never> = (node: T) => void;
|
|
4374
6708
|
interface RuleListenerBaseSelectors {
|
|
4375
|
-
AccessorProperty?: RuleFunction<AccessorProperty>;
|
|
4376
|
-
ArrayExpression?: RuleFunction<ArrayExpression>;
|
|
4377
|
-
ArrayPattern?: RuleFunction<ArrayPattern>;
|
|
4378
|
-
ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression>;
|
|
4379
|
-
AssignmentExpression?: RuleFunction<AssignmentExpression>;
|
|
4380
|
-
AssignmentPattern?: RuleFunction<AssignmentPattern>;
|
|
4381
|
-
AwaitExpression?: RuleFunction<AwaitExpression>;
|
|
4382
|
-
BinaryExpression?: RuleFunction<BinaryExpression>;
|
|
4383
|
-
BlockStatement?: RuleFunction<BlockStatement>;
|
|
4384
|
-
BreakStatement?: RuleFunction<BreakStatement>;
|
|
4385
|
-
CallExpression?: RuleFunction<CallExpression>;
|
|
4386
|
-
CatchClause?: RuleFunction<CatchClause>;
|
|
4387
|
-
ChainExpression?: RuleFunction<ChainExpression>;
|
|
4388
|
-
ClassBody?: RuleFunction<ClassBody>;
|
|
4389
|
-
ClassDeclaration?: RuleFunction<ClassDeclaration>;
|
|
4390
|
-
ClassExpression?: RuleFunction<ClassExpression>;
|
|
4391
|
-
ConditionalExpression?: RuleFunction<ConditionalExpression>;
|
|
4392
|
-
ContinueStatement?: RuleFunction<ContinueStatement>;
|
|
4393
|
-
DebuggerStatement?: RuleFunction<DebuggerStatement>;
|
|
4394
|
-
Decorator?: RuleFunction<Decorator>;
|
|
4395
|
-
DoWhileStatement?: RuleFunction<DoWhileStatement>;
|
|
4396
|
-
EmptyStatement?: RuleFunction<EmptyStatement>;
|
|
4397
|
-
ExportAllDeclaration?: RuleFunction<ExportAllDeclaration>;
|
|
4398
|
-
ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration>;
|
|
4399
|
-
ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration>;
|
|
4400
|
-
ExportSpecifier?: RuleFunction<ExportSpecifier>;
|
|
4401
|
-
ExpressionStatement?: RuleFunction<ExpressionStatement>;
|
|
4402
|
-
ForInStatement?: RuleFunction<ForInStatement>;
|
|
4403
|
-
ForOfStatement?: RuleFunction<ForOfStatement>;
|
|
4404
|
-
ForStatement?: RuleFunction<ForStatement>;
|
|
4405
|
-
FunctionDeclaration?: RuleFunction<FunctionDeclaration>;
|
|
4406
|
-
FunctionExpression?: RuleFunction<FunctionExpression>;
|
|
4407
|
-
Identifier?: RuleFunction<Identifier>;
|
|
4408
|
-
IfStatement?: RuleFunction<IfStatement>;
|
|
4409
|
-
ImportAttribute?: RuleFunction<ImportAttribute>;
|
|
4410
|
-
ImportDeclaration?: RuleFunction<ImportDeclaration>;
|
|
4411
|
-
ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier>;
|
|
4412
|
-
ImportExpression?: RuleFunction<ImportExpression>;
|
|
4413
|
-
ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier>;
|
|
4414
|
-
ImportSpecifier?: RuleFunction<ImportSpecifier>;
|
|
4415
|
-
JSXAttribute?: RuleFunction<JSXAttribute>;
|
|
4416
|
-
JSXClosingElement?: RuleFunction<JSXClosingElement>;
|
|
4417
|
-
JSXClosingFragment?: RuleFunction<JSXClosingFragment>;
|
|
4418
|
-
JSXElement?: RuleFunction<JSXElement>;
|
|
4419
|
-
JSXEmptyExpression?: RuleFunction<JSXEmptyExpression>;
|
|
4420
|
-
JSXExpressionContainer?: RuleFunction<JSXExpressionContainer>;
|
|
4421
|
-
JSXFragment?: RuleFunction<JSXFragment>;
|
|
4422
|
-
JSXIdentifier?: RuleFunction<JSXIdentifier>;
|
|
4423
|
-
JSXMemberExpression?: RuleFunction<JSXMemberExpression>;
|
|
4424
|
-
JSXNamespacedName?: RuleFunction<JSXNamespacedName>;
|
|
4425
|
-
JSXOpeningElement?: RuleFunction<JSXOpeningElement>;
|
|
4426
|
-
JSXOpeningFragment?: RuleFunction<JSXOpeningFragment>;
|
|
4427
|
-
JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute>;
|
|
4428
|
-
JSXSpreadChild?: RuleFunction<JSXSpreadChild>;
|
|
4429
|
-
JSXText?: RuleFunction<JSXText>;
|
|
4430
|
-
LabeledStatement?: RuleFunction<LabeledStatement>;
|
|
4431
|
-
Literal?: RuleFunction<Literal>;
|
|
4432
|
-
LogicalExpression?: RuleFunction<LogicalExpression>;
|
|
4433
|
-
MemberExpression?: RuleFunction<MemberExpression>;
|
|
4434
|
-
MetaProperty?: RuleFunction<MetaProperty>;
|
|
4435
|
-
MethodDefinition?: RuleFunction<MethodDefinition>;
|
|
4436
|
-
NewExpression?: RuleFunction<NewExpression>;
|
|
4437
|
-
ObjectExpression?: RuleFunction<ObjectExpression>;
|
|
4438
|
-
ObjectPattern?: RuleFunction<ObjectPattern>;
|
|
4439
|
-
PrivateIdentifier?: RuleFunction<PrivateIdentifier>;
|
|
4440
|
-
Program?: RuleFunction<Program>;
|
|
4441
|
-
Property?: RuleFunction<Property>;
|
|
4442
|
-
PropertyDefinition?: RuleFunction<PropertyDefinition>;
|
|
4443
|
-
RestElement?: RuleFunction<RestElement>;
|
|
4444
|
-
ReturnStatement?: RuleFunction<ReturnStatement>;
|
|
4445
|
-
SequenceExpression?: RuleFunction<SequenceExpression>;
|
|
4446
|
-
SpreadElement?: RuleFunction<SpreadElement>;
|
|
4447
|
-
StaticBlock?: RuleFunction<StaticBlock>;
|
|
4448
|
-
Super?: RuleFunction<Super>;
|
|
4449
|
-
SwitchCase?: RuleFunction<SwitchCase>;
|
|
4450
|
-
SwitchStatement?: RuleFunction<SwitchStatement>;
|
|
4451
|
-
TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression>;
|
|
4452
|
-
TemplateElement?: RuleFunction<TemplateElement>;
|
|
4453
|
-
TemplateLiteral?: RuleFunction<TemplateLiteral>;
|
|
4454
|
-
ThisExpression?: RuleFunction<ThisExpression>;
|
|
4455
|
-
ThrowStatement?: RuleFunction<ThrowStatement>;
|
|
4456
|
-
TryStatement?: RuleFunction<TryStatement>;
|
|
4457
|
-
TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty>;
|
|
4458
|
-
TSAbstractKeyword?: RuleFunction<TSAbstractKeyword>;
|
|
4459
|
-
TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition>;
|
|
4460
|
-
TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition>;
|
|
4461
|
-
TSAnyKeyword?: RuleFunction<TSAnyKeyword>;
|
|
4462
|
-
TSArrayType?: RuleFunction<TSArrayType>;
|
|
4463
|
-
TSAsExpression?: RuleFunction<TSAsExpression>;
|
|
4464
|
-
TSAsyncKeyword?: RuleFunction<TSAsyncKeyword>;
|
|
4465
|
-
TSBigIntKeyword?: RuleFunction<TSBigIntKeyword>;
|
|
4466
|
-
TSBooleanKeyword?: RuleFunction<TSBooleanKeyword>;
|
|
4467
|
-
TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration>;
|
|
4468
|
-
TSClassImplements?: RuleFunction<TSClassImplements>;
|
|
4469
|
-
TSConditionalType?: RuleFunction<TSConditionalType>;
|
|
4470
|
-
TSConstructorType?: RuleFunction<TSConstructorType>;
|
|
4471
|
-
TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration>;
|
|
4472
|
-
TSDeclareFunction?: RuleFunction<TSDeclareFunction>;
|
|
4473
|
-
TSDeclareKeyword?: RuleFunction<TSDeclareKeyword>;
|
|
4474
|
-
TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression>;
|
|
4475
|
-
TSEnumBody?: RuleFunction<TSEnumBody>;
|
|
4476
|
-
TSEnumDeclaration?: RuleFunction<TSEnumDeclaration>;
|
|
4477
|
-
TSEnumMember?: RuleFunction<TSEnumMember>;
|
|
4478
|
-
TSExportAssignment?: RuleFunction<TSExportAssignment>;
|
|
4479
|
-
TSExportKeyword?: RuleFunction<TSExportKeyword>;
|
|
4480
|
-
TSExternalModuleReference?: RuleFunction<TSExternalModuleReference>;
|
|
4481
|
-
TSFunctionType?: RuleFunction<TSFunctionType>;
|
|
4482
|
-
TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration>;
|
|
4483
|
-
TSImportType?: RuleFunction<TSImportType>;
|
|
4484
|
-
TSIndexedAccessType?: RuleFunction<TSIndexedAccessType>;
|
|
4485
|
-
TSIndexSignature?: RuleFunction<TSIndexSignature>;
|
|
4486
|
-
TSInferType?: RuleFunction<TSInferType>;
|
|
4487
|
-
TSInstantiationExpression?: RuleFunction<TSInstantiationExpression>;
|
|
4488
|
-
TSInterfaceBody?: RuleFunction<TSInterfaceBody>;
|
|
4489
|
-
TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration>;
|
|
4490
|
-
TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage>;
|
|
4491
|
-
TSIntersectionType?: RuleFunction<TSIntersectionType>;
|
|
4492
|
-
TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword>;
|
|
4493
|
-
TSLiteralType?: RuleFunction<TSLiteralType>;
|
|
4494
|
-
TSMappedType?: RuleFunction<TSMappedType>;
|
|
4495
|
-
TSMethodSignature?: RuleFunction<TSMethodSignature>;
|
|
4496
|
-
TSModuleBlock?: RuleFunction<TSModuleBlock>;
|
|
4497
|
-
TSModuleDeclaration?: RuleFunction<TSModuleDeclaration>;
|
|
4498
|
-
TSNamedTupleMember?: RuleFunction<TSNamedTupleMember>;
|
|
4499
|
-
TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration>;
|
|
4500
|
-
TSNeverKeyword?: RuleFunction<TSNeverKeyword>;
|
|
4501
|
-
TSNonNullExpression?: RuleFunction<TSNonNullExpression>;
|
|
4502
|
-
TSNullKeyword?: RuleFunction<TSNullKeyword>;
|
|
4503
|
-
TSNumberKeyword?: RuleFunction<TSNumberKeyword>;
|
|
4504
|
-
TSObjectKeyword?: RuleFunction<TSObjectKeyword>;
|
|
4505
|
-
TSOptionalType?: RuleFunction<TSOptionalType>;
|
|
4506
|
-
TSParameterProperty?: RuleFunction<TSParameterProperty>;
|
|
4507
|
-
TSPrivateKeyword?: RuleFunction<TSPrivateKeyword>;
|
|
4508
|
-
TSPropertySignature?: RuleFunction<TSPropertySignature>;
|
|
4509
|
-
TSProtectedKeyword?: RuleFunction<TSProtectedKeyword>;
|
|
4510
|
-
TSPublicKeyword?: RuleFunction<TSPublicKeyword>;
|
|
4511
|
-
TSQualifiedName?: RuleFunction<TSQualifiedName>;
|
|
4512
|
-
TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword>;
|
|
4513
|
-
TSRestType?: RuleFunction<TSRestType>;
|
|
4514
|
-
TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression>;
|
|
4515
|
-
TSStaticKeyword?: RuleFunction<TSStaticKeyword>;
|
|
4516
|
-
TSStringKeyword?: RuleFunction<TSStringKeyword>;
|
|
4517
|
-
TSSymbolKeyword?: RuleFunction<TSSymbolKeyword>;
|
|
4518
|
-
TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType>;
|
|
4519
|
-
TSThisType?: RuleFunction<TSThisType>;
|
|
4520
|
-
TSTupleType?: RuleFunction<TSTupleType>;
|
|
4521
|
-
TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration>;
|
|
4522
|
-
TSTypeAnnotation?: RuleFunction<TSTypeAnnotation>;
|
|
4523
|
-
TSTypeAssertion?: RuleFunction<TSTypeAssertion>;
|
|
4524
|
-
TSTypeLiteral?: RuleFunction<TSTypeLiteral>;
|
|
4525
|
-
TSTypeOperator?: RuleFunction<TSTypeOperator>;
|
|
4526
|
-
TSTypeParameter?: RuleFunction<TSTypeParameter>;
|
|
4527
|
-
TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration>;
|
|
4528
|
-
TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation>;
|
|
4529
|
-
TSTypePredicate?: RuleFunction<TSTypePredicate>;
|
|
4530
|
-
TSTypeQuery?: RuleFunction<TSTypeQuery>;
|
|
4531
|
-
TSTypeReference?: RuleFunction<TSTypeReference>;
|
|
4532
|
-
TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword>;
|
|
4533
|
-
TSUnionType?: RuleFunction<TSUnionType>;
|
|
4534
|
-
TSUnknownKeyword?: RuleFunction<TSUnknownKeyword>;
|
|
4535
|
-
TSVoidKeyword?: RuleFunction<TSVoidKeyword>;
|
|
4536
|
-
UnaryExpression?: RuleFunction<UnaryExpression>;
|
|
4537
|
-
UpdateExpression?: RuleFunction<UpdateExpression>;
|
|
4538
|
-
VariableDeclaration?: RuleFunction<VariableDeclaration>;
|
|
4539
|
-
VariableDeclarator?: RuleFunction<VariableDeclarator>;
|
|
4540
|
-
WhileStatement?: RuleFunction<WhileStatement>;
|
|
4541
|
-
WithStatement?: RuleFunction<WithStatement>;
|
|
4542
|
-
YieldExpression?: RuleFunction<YieldExpression>;
|
|
6709
|
+
AccessorProperty?: RuleFunction<AccessorProperty$1>;
|
|
6710
|
+
ArrayExpression?: RuleFunction<ArrayExpression$1>;
|
|
6711
|
+
ArrayPattern?: RuleFunction<ArrayPattern$1>;
|
|
6712
|
+
ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression$1>;
|
|
6713
|
+
AssignmentExpression?: RuleFunction<AssignmentExpression$1>;
|
|
6714
|
+
AssignmentPattern?: RuleFunction<AssignmentPattern$1>;
|
|
6715
|
+
AwaitExpression?: RuleFunction<AwaitExpression$1>;
|
|
6716
|
+
BinaryExpression?: RuleFunction<BinaryExpression$1>;
|
|
6717
|
+
BlockStatement?: RuleFunction<BlockStatement$1>;
|
|
6718
|
+
BreakStatement?: RuleFunction<BreakStatement$1>;
|
|
6719
|
+
CallExpression?: RuleFunction<CallExpression$1>;
|
|
6720
|
+
CatchClause?: RuleFunction<CatchClause$1>;
|
|
6721
|
+
ChainExpression?: RuleFunction<ChainExpression$1>;
|
|
6722
|
+
ClassBody?: RuleFunction<ClassBody$1>;
|
|
6723
|
+
ClassDeclaration?: RuleFunction<ClassDeclaration$1>;
|
|
6724
|
+
ClassExpression?: RuleFunction<ClassExpression$1>;
|
|
6725
|
+
ConditionalExpression?: RuleFunction<ConditionalExpression$1>;
|
|
6726
|
+
ContinueStatement?: RuleFunction<ContinueStatement$1>;
|
|
6727
|
+
DebuggerStatement?: RuleFunction<DebuggerStatement$1>;
|
|
6728
|
+
Decorator?: RuleFunction<Decorator$1>;
|
|
6729
|
+
DoWhileStatement?: RuleFunction<DoWhileStatement$1>;
|
|
6730
|
+
EmptyStatement?: RuleFunction<EmptyStatement$1>;
|
|
6731
|
+
ExportAllDeclaration?: RuleFunction<ExportAllDeclaration$1>;
|
|
6732
|
+
ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration$1>;
|
|
6733
|
+
ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration$1>;
|
|
6734
|
+
ExportSpecifier?: RuleFunction<ExportSpecifier$1>;
|
|
6735
|
+
ExpressionStatement?: RuleFunction<ExpressionStatement$1>;
|
|
6736
|
+
ForInStatement?: RuleFunction<ForInStatement$1>;
|
|
6737
|
+
ForOfStatement?: RuleFunction<ForOfStatement$1>;
|
|
6738
|
+
ForStatement?: RuleFunction<ForStatement$1>;
|
|
6739
|
+
FunctionDeclaration?: RuleFunction<FunctionDeclaration$1>;
|
|
6740
|
+
FunctionExpression?: RuleFunction<FunctionExpression$1>;
|
|
6741
|
+
Identifier?: RuleFunction<Identifier$1>;
|
|
6742
|
+
IfStatement?: RuleFunction<IfStatement$1>;
|
|
6743
|
+
ImportAttribute?: RuleFunction<ImportAttribute$1>;
|
|
6744
|
+
ImportDeclaration?: RuleFunction<ImportDeclaration$1>;
|
|
6745
|
+
ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier$1>;
|
|
6746
|
+
ImportExpression?: RuleFunction<ImportExpression$1>;
|
|
6747
|
+
ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier$1>;
|
|
6748
|
+
ImportSpecifier?: RuleFunction<ImportSpecifier$1>;
|
|
6749
|
+
JSXAttribute?: RuleFunction<JSXAttribute$1>;
|
|
6750
|
+
JSXClosingElement?: RuleFunction<JSXClosingElement$1>;
|
|
6751
|
+
JSXClosingFragment?: RuleFunction<JSXClosingFragment$1>;
|
|
6752
|
+
JSXElement?: RuleFunction<JSXElement$1>;
|
|
6753
|
+
JSXEmptyExpression?: RuleFunction<JSXEmptyExpression$1>;
|
|
6754
|
+
JSXExpressionContainer?: RuleFunction<JSXExpressionContainer$1>;
|
|
6755
|
+
JSXFragment?: RuleFunction<JSXFragment$1>;
|
|
6756
|
+
JSXIdentifier?: RuleFunction<JSXIdentifier$1>;
|
|
6757
|
+
JSXMemberExpression?: RuleFunction<JSXMemberExpression$1>;
|
|
6758
|
+
JSXNamespacedName?: RuleFunction<JSXNamespacedName$1>;
|
|
6759
|
+
JSXOpeningElement?: RuleFunction<JSXOpeningElement$1>;
|
|
6760
|
+
JSXOpeningFragment?: RuleFunction<JSXOpeningFragment$1>;
|
|
6761
|
+
JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute$1>;
|
|
6762
|
+
JSXSpreadChild?: RuleFunction<JSXSpreadChild$1>;
|
|
6763
|
+
JSXText?: RuleFunction<JSXText$1>;
|
|
6764
|
+
LabeledStatement?: RuleFunction<LabeledStatement$1>;
|
|
6765
|
+
Literal?: RuleFunction<Literal$1>;
|
|
6766
|
+
LogicalExpression?: RuleFunction<LogicalExpression$1>;
|
|
6767
|
+
MemberExpression?: RuleFunction<MemberExpression$1>;
|
|
6768
|
+
MetaProperty?: RuleFunction<MetaProperty$1>;
|
|
6769
|
+
MethodDefinition?: RuleFunction<MethodDefinition$1>;
|
|
6770
|
+
NewExpression?: RuleFunction<NewExpression$1>;
|
|
6771
|
+
ObjectExpression?: RuleFunction<ObjectExpression$1>;
|
|
6772
|
+
ObjectPattern?: RuleFunction<ObjectPattern$1>;
|
|
6773
|
+
PrivateIdentifier?: RuleFunction<PrivateIdentifier$1>;
|
|
6774
|
+
Program?: RuleFunction<Program$1>;
|
|
6775
|
+
Property?: RuleFunction<Property$1>;
|
|
6776
|
+
PropertyDefinition?: RuleFunction<PropertyDefinition$1>;
|
|
6777
|
+
RestElement?: RuleFunction<RestElement$1>;
|
|
6778
|
+
ReturnStatement?: RuleFunction<ReturnStatement$1>;
|
|
6779
|
+
SequenceExpression?: RuleFunction<SequenceExpression$1>;
|
|
6780
|
+
SpreadElement?: RuleFunction<SpreadElement$1>;
|
|
6781
|
+
StaticBlock?: RuleFunction<StaticBlock$1>;
|
|
6782
|
+
Super?: RuleFunction<Super$1>;
|
|
6783
|
+
SwitchCase?: RuleFunction<SwitchCase$1>;
|
|
6784
|
+
SwitchStatement?: RuleFunction<SwitchStatement$1>;
|
|
6785
|
+
TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression$1>;
|
|
6786
|
+
TemplateElement?: RuleFunction<TemplateElement$1>;
|
|
6787
|
+
TemplateLiteral?: RuleFunction<TemplateLiteral$1>;
|
|
6788
|
+
ThisExpression?: RuleFunction<ThisExpression$1>;
|
|
6789
|
+
ThrowStatement?: RuleFunction<ThrowStatement$1>;
|
|
6790
|
+
TryStatement?: RuleFunction<TryStatement$1>;
|
|
6791
|
+
TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty$1>;
|
|
6792
|
+
TSAbstractKeyword?: RuleFunction<TSAbstractKeyword$1>;
|
|
6793
|
+
TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition$1>;
|
|
6794
|
+
TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition$1>;
|
|
6795
|
+
TSAnyKeyword?: RuleFunction<TSAnyKeyword$1>;
|
|
6796
|
+
TSArrayType?: RuleFunction<TSArrayType$1>;
|
|
6797
|
+
TSAsExpression?: RuleFunction<TSAsExpression$1>;
|
|
6798
|
+
TSAsyncKeyword?: RuleFunction<TSAsyncKeyword$1>;
|
|
6799
|
+
TSBigIntKeyword?: RuleFunction<TSBigIntKeyword$1>;
|
|
6800
|
+
TSBooleanKeyword?: RuleFunction<TSBooleanKeyword$1>;
|
|
6801
|
+
TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration$1>;
|
|
6802
|
+
TSClassImplements?: RuleFunction<TSClassImplements$1>;
|
|
6803
|
+
TSConditionalType?: RuleFunction<TSConditionalType$1>;
|
|
6804
|
+
TSConstructorType?: RuleFunction<TSConstructorType$1>;
|
|
6805
|
+
TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration$1>;
|
|
6806
|
+
TSDeclareFunction?: RuleFunction<TSDeclareFunction$1>;
|
|
6807
|
+
TSDeclareKeyword?: RuleFunction<TSDeclareKeyword$1>;
|
|
6808
|
+
TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression$1>;
|
|
6809
|
+
TSEnumBody?: RuleFunction<TSEnumBody$1>;
|
|
6810
|
+
TSEnumDeclaration?: RuleFunction<TSEnumDeclaration$1>;
|
|
6811
|
+
TSEnumMember?: RuleFunction<TSEnumMember$1>;
|
|
6812
|
+
TSExportAssignment?: RuleFunction<TSExportAssignment$1>;
|
|
6813
|
+
TSExportKeyword?: RuleFunction<TSExportKeyword$1>;
|
|
6814
|
+
TSExternalModuleReference?: RuleFunction<TSExternalModuleReference$1>;
|
|
6815
|
+
TSFunctionType?: RuleFunction<TSFunctionType$1>;
|
|
6816
|
+
TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration$1>;
|
|
6817
|
+
TSImportType?: RuleFunction<TSImportType$1>;
|
|
6818
|
+
TSIndexedAccessType?: RuleFunction<TSIndexedAccessType$1>;
|
|
6819
|
+
TSIndexSignature?: RuleFunction<TSIndexSignature$1>;
|
|
6820
|
+
TSInferType?: RuleFunction<TSInferType$1>;
|
|
6821
|
+
TSInstantiationExpression?: RuleFunction<TSInstantiationExpression$1>;
|
|
6822
|
+
TSInterfaceBody?: RuleFunction<TSInterfaceBody$1>;
|
|
6823
|
+
TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration$1>;
|
|
6824
|
+
TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage$1>;
|
|
6825
|
+
TSIntersectionType?: RuleFunction<TSIntersectionType$1>;
|
|
6826
|
+
TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword$1>;
|
|
6827
|
+
TSLiteralType?: RuleFunction<TSLiteralType$1>;
|
|
6828
|
+
TSMappedType?: RuleFunction<TSMappedType$1>;
|
|
6829
|
+
TSMethodSignature?: RuleFunction<TSMethodSignature$1>;
|
|
6830
|
+
TSModuleBlock?: RuleFunction<TSModuleBlock$1>;
|
|
6831
|
+
TSModuleDeclaration?: RuleFunction<TSModuleDeclaration$1>;
|
|
6832
|
+
TSNamedTupleMember?: RuleFunction<TSNamedTupleMember$1>;
|
|
6833
|
+
TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration$1>;
|
|
6834
|
+
TSNeverKeyword?: RuleFunction<TSNeverKeyword$1>;
|
|
6835
|
+
TSNonNullExpression?: RuleFunction<TSNonNullExpression$1>;
|
|
6836
|
+
TSNullKeyword?: RuleFunction<TSNullKeyword$1>;
|
|
6837
|
+
TSNumberKeyword?: RuleFunction<TSNumberKeyword$1>;
|
|
6838
|
+
TSObjectKeyword?: RuleFunction<TSObjectKeyword$1>;
|
|
6839
|
+
TSOptionalType?: RuleFunction<TSOptionalType$1>;
|
|
6840
|
+
TSParameterProperty?: RuleFunction<TSParameterProperty$1>;
|
|
6841
|
+
TSPrivateKeyword?: RuleFunction<TSPrivateKeyword$1>;
|
|
6842
|
+
TSPropertySignature?: RuleFunction<TSPropertySignature$1>;
|
|
6843
|
+
TSProtectedKeyword?: RuleFunction<TSProtectedKeyword$1>;
|
|
6844
|
+
TSPublicKeyword?: RuleFunction<TSPublicKeyword$1>;
|
|
6845
|
+
TSQualifiedName?: RuleFunction<TSQualifiedName$1>;
|
|
6846
|
+
TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword$1>;
|
|
6847
|
+
TSRestType?: RuleFunction<TSRestType$1>;
|
|
6848
|
+
TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression$1>;
|
|
6849
|
+
TSStaticKeyword?: RuleFunction<TSStaticKeyword$1>;
|
|
6850
|
+
TSStringKeyword?: RuleFunction<TSStringKeyword$1>;
|
|
6851
|
+
TSSymbolKeyword?: RuleFunction<TSSymbolKeyword$1>;
|
|
6852
|
+
TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType$1>;
|
|
6853
|
+
TSThisType?: RuleFunction<TSThisType$1>;
|
|
6854
|
+
TSTupleType?: RuleFunction<TSTupleType$1>;
|
|
6855
|
+
TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration$1>;
|
|
6856
|
+
TSTypeAnnotation?: RuleFunction<TSTypeAnnotation$1>;
|
|
6857
|
+
TSTypeAssertion?: RuleFunction<TSTypeAssertion$1>;
|
|
6858
|
+
TSTypeLiteral?: RuleFunction<TSTypeLiteral$1>;
|
|
6859
|
+
TSTypeOperator?: RuleFunction<TSTypeOperator$1>;
|
|
6860
|
+
TSTypeParameter?: RuleFunction<TSTypeParameter$1>;
|
|
6861
|
+
TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration$1>;
|
|
6862
|
+
TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation$1>;
|
|
6863
|
+
TSTypePredicate?: RuleFunction<TSTypePredicate$1>;
|
|
6864
|
+
TSTypeQuery?: RuleFunction<TSTypeQuery$1>;
|
|
6865
|
+
TSTypeReference?: RuleFunction<TSTypeReference$1>;
|
|
6866
|
+
TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword$1>;
|
|
6867
|
+
TSUnionType?: RuleFunction<TSUnionType$1>;
|
|
6868
|
+
TSUnknownKeyword?: RuleFunction<TSUnknownKeyword$1>;
|
|
6869
|
+
TSVoidKeyword?: RuleFunction<TSVoidKeyword$1>;
|
|
6870
|
+
UnaryExpression?: RuleFunction<UnaryExpression$1>;
|
|
6871
|
+
UpdateExpression?: RuleFunction<UpdateExpression$1>;
|
|
6872
|
+
VariableDeclaration?: RuleFunction<VariableDeclaration$1>;
|
|
6873
|
+
VariableDeclarator?: RuleFunction<VariableDeclarator$1>;
|
|
6874
|
+
WhileStatement?: RuleFunction<WhileStatement$1>;
|
|
6875
|
+
WithStatement?: RuleFunction<WithStatement$1>;
|
|
6876
|
+
YieldExpression?: RuleFunction<YieldExpression$1>;
|
|
4543
6877
|
}
|
|
4544
6878
|
type RuleListenerExitSelectors = {
|
|
4545
6879
|
[K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K];
|