@saasmakers/eslint 1.0.18 → 1.0.20
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 +4 -3
- package/dist/eslint.config.d.cts +3 -2
- package/dist/eslint.config.d.mts +3 -2
- package/dist/eslint.config.d.ts +3 -2
- package/dist/eslint.config.mjs +4 -3
- package/dist/index.cjs +301 -573
- package/dist/index.d.cts +545 -2878
- package/dist/index.d.mts +545 -2878
- package/dist/index.d.ts +545 -2878
- package/dist/index.mjs +301 -573
- package/dist/shared/{eslint.DhFjwkxh.cjs → eslint.BqRQ4tAN.cjs} +2901 -2464
- package/dist/shared/{eslint.CohBuu1-.mjs → eslint.DOaqyhfZ.mjs} +2901 -2464
- package/package.json +7 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,2411 +1,5 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
|
-
import { SyntaxKind, Program as Program$
|
|
3
|
-
import * as eslint from 'eslint';
|
|
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>;
|
|
2
|
+
import { SyntaxKind, Program as Program$1 } from 'typescript';
|
|
2409
3
|
|
|
2410
4
|
/**********************************************
|
|
2411
5
|
* DO NOT MODIFY THIS FILE MANUALLY *
|
|
@@ -4555,6 +2149,75 @@ declare interface YieldExpression extends BaseNode {
|
|
|
4555
2149
|
delegate: boolean;
|
|
4556
2150
|
}
|
|
4557
2151
|
|
|
2152
|
+
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' | 'es2025' | 'es2025.collection' | 'es2025.float16' | 'es2025.full' | 'es2025.intl' | 'es2025.iterator' | 'es2025.promise' | 'es2025.regexp' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.date' | '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.temporal' | 'esnext.typedarrays' | 'esnext.weakref' | 'lib' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
|
|
2153
|
+
|
|
2154
|
+
type DebugLevel = boolean | ('eslint' | 'typescript' | 'typescript-eslint')[];
|
|
2155
|
+
type CacheDurationSeconds = number | 'Infinity';
|
|
2156
|
+
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;
|
|
2157
|
+
type SourceTypeClassic = 'module' | 'script';
|
|
2158
|
+
type SourceType = 'commonjs' | SourceTypeClassic;
|
|
2159
|
+
type JSDocParsingMode = 'all' | 'none' | 'type-info';
|
|
2160
|
+
/**
|
|
2161
|
+
* Granular options to configure the project service.
|
|
2162
|
+
*/
|
|
2163
|
+
interface ProjectServiceOptions {
|
|
2164
|
+
/**
|
|
2165
|
+
* Globs of files to allow running with the default project compiler options
|
|
2166
|
+
* despite not being matched by the project service.
|
|
2167
|
+
*/
|
|
2168
|
+
allowDefaultProject?: string[];
|
|
2169
|
+
/**
|
|
2170
|
+
* Path to a TSConfig to use instead of TypeScript's default project configuration.
|
|
2171
|
+
* @default 'tsconfig.json'
|
|
2172
|
+
*/
|
|
2173
|
+
defaultProject?: string;
|
|
2174
|
+
/**
|
|
2175
|
+
* Whether to allow TypeScript plugins as configured in the TSConfig.
|
|
2176
|
+
*/
|
|
2177
|
+
loadTypeScriptPlugins?: boolean;
|
|
2178
|
+
/**
|
|
2179
|
+
* The maximum number of files {@link allowDefaultProject} may match.
|
|
2180
|
+
* Each file match slows down linting, so if you do need to use this, please
|
|
2181
|
+
* file an informative issue on typescript-eslint explaining why - so we can
|
|
2182
|
+
* help you avoid using it!
|
|
2183
|
+
* @default 8
|
|
2184
|
+
*/
|
|
2185
|
+
maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING?: number;
|
|
2186
|
+
}
|
|
2187
|
+
interface ParserOptions {
|
|
2188
|
+
[additionalProperties: string]: unknown;
|
|
2189
|
+
cacheLifetime?: {
|
|
2190
|
+
glob?: CacheDurationSeconds;
|
|
2191
|
+
};
|
|
2192
|
+
debugLevel?: DebugLevel;
|
|
2193
|
+
ecmaFeatures?: {
|
|
2194
|
+
[key: string]: unknown;
|
|
2195
|
+
globalReturn?: boolean | undefined;
|
|
2196
|
+
jsx?: boolean | undefined;
|
|
2197
|
+
} | undefined;
|
|
2198
|
+
ecmaVersion?: EcmaVersion;
|
|
2199
|
+
emitDecoratorMetadata?: boolean;
|
|
2200
|
+
errorOnTypeScriptSyntacticAndSemanticIssues?: boolean;
|
|
2201
|
+
errorOnUnknownASTType?: boolean;
|
|
2202
|
+
experimentalDecorators?: boolean;
|
|
2203
|
+
extraFileExtensions?: string[];
|
|
2204
|
+
filePath?: string;
|
|
2205
|
+
isolatedDeclarations?: boolean;
|
|
2206
|
+
jsDocParsingMode?: JSDocParsingMode;
|
|
2207
|
+
jsxFragmentName?: string | null;
|
|
2208
|
+
jsxPragma?: string | null;
|
|
2209
|
+
lib?: Lib[];
|
|
2210
|
+
programs?: Program$1[] | null;
|
|
2211
|
+
project?: boolean | string | string[] | null;
|
|
2212
|
+
projectFolderIgnoreList?: string[];
|
|
2213
|
+
projectService?: boolean | ProjectServiceOptions;
|
|
2214
|
+
range?: boolean;
|
|
2215
|
+
sourceType?: SourceType | undefined;
|
|
2216
|
+
tokens?: boolean;
|
|
2217
|
+
tsconfigRootDir?: string;
|
|
2218
|
+
warnOnUnsupportedTypeScriptVersion?: boolean;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
4558
2221
|
declare module "./index" {
|
|
4559
2222
|
interface BaseNode {
|
|
4560
2223
|
parent: Node;
|
|
@@ -4741,6 +2404,8 @@ declare module "./index" {
|
|
|
4741
2404
|
}
|
|
4742
2405
|
}
|
|
4743
2406
|
|
|
2407
|
+
type NodeWithParent = Exclude<Node, Program>;
|
|
2408
|
+
|
|
4744
2409
|
declare module 'typescript' {
|
|
4745
2410
|
interface AssertClause extends ts.ImportAttributes {
|
|
4746
2411
|
}
|
|
@@ -4759,180 +2424,180 @@ type TSToken = ts.Token<ts.SyntaxKind>;
|
|
|
4759
2424
|
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;
|
|
4760
2425
|
|
|
4761
2426
|
interface EstreeToTsNodeTypes {
|
|
4762
|
-
[AST_NODE_TYPES
|
|
4763
|
-
[AST_NODE_TYPES
|
|
4764
|
-
[AST_NODE_TYPES
|
|
4765
|
-
[AST_NODE_TYPES
|
|
4766
|
-
[AST_NODE_TYPES
|
|
4767
|
-
[AST_NODE_TYPES
|
|
4768
|
-
[AST_NODE_TYPES
|
|
4769
|
-
[AST_NODE_TYPES
|
|
4770
|
-
[AST_NODE_TYPES
|
|
4771
|
-
[AST_NODE_TYPES
|
|
4772
|
-
[AST_NODE_TYPES
|
|
4773
|
-
[AST_NODE_TYPES
|
|
4774
|
-
[AST_NODE_TYPES
|
|
4775
|
-
[AST_NODE_TYPES
|
|
4776
|
-
[AST_NODE_TYPES
|
|
4777
|
-
[AST_NODE_TYPES
|
|
4778
|
-
[AST_NODE_TYPES
|
|
4779
|
-
[AST_NODE_TYPES
|
|
4780
|
-
[AST_NODE_TYPES
|
|
4781
|
-
[AST_NODE_TYPES
|
|
4782
|
-
[AST_NODE_TYPES
|
|
4783
|
-
[AST_NODE_TYPES
|
|
4784
|
-
[AST_NODE_TYPES
|
|
4785
|
-
[AST_NODE_TYPES
|
|
4786
|
-
[AST_NODE_TYPES
|
|
4787
|
-
[AST_NODE_TYPES
|
|
4788
|
-
[AST_NODE_TYPES
|
|
4789
|
-
[AST_NODE_TYPES
|
|
4790
|
-
[AST_NODE_TYPES
|
|
4791
|
-
[AST_NODE_TYPES
|
|
4792
|
-
[AST_NODE_TYPES
|
|
4793
|
-
[AST_NODE_TYPES
|
|
4794
|
-
[AST_NODE_TYPES
|
|
4795
|
-
[AST_NODE_TYPES
|
|
4796
|
-
[AST_NODE_TYPES
|
|
4797
|
-
[AST_NODE_TYPES
|
|
4798
|
-
[AST_NODE_TYPES
|
|
4799
|
-
[AST_NODE_TYPES
|
|
4800
|
-
[AST_NODE_TYPES
|
|
4801
|
-
[AST_NODE_TYPES
|
|
4802
|
-
[AST_NODE_TYPES
|
|
4803
|
-
[AST_NODE_TYPES
|
|
4804
|
-
[AST_NODE_TYPES
|
|
4805
|
-
[AST_NODE_TYPES
|
|
4806
|
-
[AST_NODE_TYPES
|
|
4807
|
-
[AST_NODE_TYPES
|
|
4808
|
-
[AST_NODE_TYPES
|
|
4809
|
-
[AST_NODE_TYPES
|
|
4810
|
-
[AST_NODE_TYPES
|
|
4811
|
-
[AST_NODE_TYPES
|
|
4812
|
-
[AST_NODE_TYPES
|
|
4813
|
-
[AST_NODE_TYPES
|
|
4814
|
-
[AST_NODE_TYPES
|
|
4815
|
-
[AST_NODE_TYPES
|
|
4816
|
-
[AST_NODE_TYPES
|
|
4817
|
-
[AST_NODE_TYPES
|
|
4818
|
-
[AST_NODE_TYPES
|
|
4819
|
-
[AST_NODE_TYPES
|
|
4820
|
-
[AST_NODE_TYPES
|
|
4821
|
-
[AST_NODE_TYPES
|
|
4822
|
-
[AST_NODE_TYPES
|
|
4823
|
-
[AST_NODE_TYPES
|
|
4824
|
-
[AST_NODE_TYPES
|
|
4825
|
-
[AST_NODE_TYPES
|
|
4826
|
-
[AST_NODE_TYPES
|
|
4827
|
-
[AST_NODE_TYPES
|
|
4828
|
-
[AST_NODE_TYPES
|
|
4829
|
-
[AST_NODE_TYPES
|
|
4830
|
-
[AST_NODE_TYPES
|
|
4831
|
-
[AST_NODE_TYPES
|
|
4832
|
-
[AST_NODE_TYPES
|
|
4833
|
-
[AST_NODE_TYPES
|
|
4834
|
-
[AST_NODE_TYPES
|
|
4835
|
-
[AST_NODE_TYPES
|
|
4836
|
-
[AST_NODE_TYPES
|
|
4837
|
-
[AST_NODE_TYPES
|
|
4838
|
-
[AST_NODE_TYPES
|
|
4839
|
-
[AST_NODE_TYPES
|
|
4840
|
-
[AST_NODE_TYPES
|
|
4841
|
-
[AST_NODE_TYPES
|
|
4842
|
-
[AST_NODE_TYPES
|
|
4843
|
-
[AST_NODE_TYPES
|
|
4844
|
-
[AST_NODE_TYPES
|
|
4845
|
-
[AST_NODE_TYPES
|
|
4846
|
-
[AST_NODE_TYPES
|
|
4847
|
-
[AST_NODE_TYPES
|
|
4848
|
-
[AST_NODE_TYPES
|
|
4849
|
-
[AST_NODE_TYPES
|
|
4850
|
-
[AST_NODE_TYPES
|
|
4851
|
-
[AST_NODE_TYPES
|
|
4852
|
-
[AST_NODE_TYPES
|
|
4853
|
-
[AST_NODE_TYPES
|
|
4854
|
-
[AST_NODE_TYPES
|
|
4855
|
-
[AST_NODE_TYPES
|
|
4856
|
-
[AST_NODE_TYPES
|
|
4857
|
-
[AST_NODE_TYPES
|
|
4858
|
-
[AST_NODE_TYPES
|
|
4859
|
-
[AST_NODE_TYPES
|
|
4860
|
-
[AST_NODE_TYPES
|
|
4861
|
-
[AST_NODE_TYPES
|
|
4862
|
-
[AST_NODE_TYPES
|
|
4863
|
-
[AST_NODE_TYPES
|
|
4864
|
-
[AST_NODE_TYPES
|
|
4865
|
-
[AST_NODE_TYPES
|
|
4866
|
-
[AST_NODE_TYPES
|
|
4867
|
-
[AST_NODE_TYPES
|
|
4868
|
-
[AST_NODE_TYPES
|
|
4869
|
-
[AST_NODE_TYPES
|
|
4870
|
-
[AST_NODE_TYPES
|
|
4871
|
-
[AST_NODE_TYPES
|
|
4872
|
-
[AST_NODE_TYPES
|
|
4873
|
-
[AST_NODE_TYPES
|
|
4874
|
-
[AST_NODE_TYPES
|
|
4875
|
-
[AST_NODE_TYPES
|
|
4876
|
-
[AST_NODE_TYPES
|
|
4877
|
-
[AST_NODE_TYPES
|
|
4878
|
-
[AST_NODE_TYPES
|
|
4879
|
-
[AST_NODE_TYPES
|
|
4880
|
-
[AST_NODE_TYPES
|
|
4881
|
-
[AST_NODE_TYPES
|
|
4882
|
-
[AST_NODE_TYPES
|
|
4883
|
-
[AST_NODE_TYPES
|
|
4884
|
-
[AST_NODE_TYPES
|
|
4885
|
-
[AST_NODE_TYPES
|
|
4886
|
-
[AST_NODE_TYPES
|
|
4887
|
-
[AST_NODE_TYPES
|
|
4888
|
-
[AST_NODE_TYPES
|
|
4889
|
-
[AST_NODE_TYPES
|
|
4890
|
-
[AST_NODE_TYPES
|
|
4891
|
-
[AST_NODE_TYPES
|
|
4892
|
-
[AST_NODE_TYPES
|
|
4893
|
-
[AST_NODE_TYPES
|
|
4894
|
-
[AST_NODE_TYPES
|
|
4895
|
-
[AST_NODE_TYPES
|
|
4896
|
-
[AST_NODE_TYPES
|
|
4897
|
-
[AST_NODE_TYPES
|
|
4898
|
-
[AST_NODE_TYPES
|
|
4899
|
-
[AST_NODE_TYPES
|
|
4900
|
-
[AST_NODE_TYPES
|
|
4901
|
-
[AST_NODE_TYPES
|
|
4902
|
-
[AST_NODE_TYPES
|
|
4903
|
-
[AST_NODE_TYPES
|
|
4904
|
-
[AST_NODE_TYPES
|
|
4905
|
-
[AST_NODE_TYPES
|
|
4906
|
-
[AST_NODE_TYPES
|
|
4907
|
-
[AST_NODE_TYPES
|
|
4908
|
-
[AST_NODE_TYPES
|
|
4909
|
-
[AST_NODE_TYPES
|
|
4910
|
-
[AST_NODE_TYPES
|
|
4911
|
-
[AST_NODE_TYPES
|
|
4912
|
-
[AST_NODE_TYPES
|
|
4913
|
-
[AST_NODE_TYPES
|
|
4914
|
-
[AST_NODE_TYPES
|
|
4915
|
-
[AST_NODE_TYPES
|
|
4916
|
-
[AST_NODE_TYPES
|
|
4917
|
-
[AST_NODE_TYPES
|
|
4918
|
-
[AST_NODE_TYPES
|
|
4919
|
-
[AST_NODE_TYPES
|
|
4920
|
-
[AST_NODE_TYPES
|
|
4921
|
-
[AST_NODE_TYPES
|
|
4922
|
-
[AST_NODE_TYPES
|
|
4923
|
-
[AST_NODE_TYPES
|
|
4924
|
-
[AST_NODE_TYPES
|
|
4925
|
-
[AST_NODE_TYPES
|
|
4926
|
-
[AST_NODE_TYPES
|
|
4927
|
-
[AST_NODE_TYPES
|
|
4928
|
-
[AST_NODE_TYPES
|
|
4929
|
-
[AST_NODE_TYPES
|
|
2427
|
+
[AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration;
|
|
2428
|
+
[AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression;
|
|
2429
|
+
[AST_NODE_TYPES.ArrayPattern]: ts.ArrayBindingPattern | ts.ArrayLiteralExpression;
|
|
2430
|
+
[AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
|
|
2431
|
+
[AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression;
|
|
2432
|
+
[AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
|
|
2433
|
+
[AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression;
|
|
2434
|
+
[AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression;
|
|
2435
|
+
[AST_NODE_TYPES.BlockStatement]: ts.Block;
|
|
2436
|
+
[AST_NODE_TYPES.BreakStatement]: ts.BreakStatement;
|
|
2437
|
+
[AST_NODE_TYPES.CallExpression]: ts.CallExpression;
|
|
2438
|
+
[AST_NODE_TYPES.CatchClause]: ts.CatchClause;
|
|
2439
|
+
[AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
|
|
2440
|
+
[AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression;
|
|
2441
|
+
[AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration;
|
|
2442
|
+
[AST_NODE_TYPES.ClassExpression]: ts.ClassExpression;
|
|
2443
|
+
[AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression;
|
|
2444
|
+
[AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement;
|
|
2445
|
+
[AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement;
|
|
2446
|
+
[AST_NODE_TYPES.Decorator]: ts.Decorator;
|
|
2447
|
+
[AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement;
|
|
2448
|
+
[AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement;
|
|
2449
|
+
[AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration;
|
|
2450
|
+
[AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
2451
|
+
[AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
|
2452
|
+
[AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier;
|
|
2453
|
+
[AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement;
|
|
2454
|
+
[AST_NODE_TYPES.ForInStatement]: ts.ForInStatement;
|
|
2455
|
+
[AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement;
|
|
2456
|
+
[AST_NODE_TYPES.ForStatement]: ts.ForStatement;
|
|
2457
|
+
[AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration;
|
|
2458
|
+
[AST_NODE_TYPES.FunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2459
|
+
[AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
|
|
2460
|
+
[AST_NODE_TYPES.IfStatement]: ts.IfStatement;
|
|
2461
|
+
[AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier;
|
|
2462
|
+
[AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration;
|
|
2463
|
+
[AST_NODE_TYPES.ImportAttribute]: 'ImportAttribute' extends keyof typeof ts ? ts.ImportAttribute : ts.AssertEntry;
|
|
2464
|
+
[AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration;
|
|
2465
|
+
[AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause;
|
|
2466
|
+
[AST_NODE_TYPES.ImportExpression]: ts.CallExpression;
|
|
2467
|
+
[AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport;
|
|
2468
|
+
[AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier;
|
|
2469
|
+
[AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute;
|
|
2470
|
+
[AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement;
|
|
2471
|
+
[AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment;
|
|
2472
|
+
[AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement;
|
|
2473
|
+
[AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression;
|
|
2474
|
+
[AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression;
|
|
2475
|
+
[AST_NODE_TYPES.JSXFragment]: ts.JsxFragment;
|
|
2476
|
+
[AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression;
|
|
2477
|
+
[AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression;
|
|
2478
|
+
[AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName;
|
|
2479
|
+
[AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement;
|
|
2480
|
+
[AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment;
|
|
2481
|
+
[AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute;
|
|
2482
|
+
[AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression;
|
|
2483
|
+
[AST_NODE_TYPES.JSXText]: ts.JsxText;
|
|
2484
|
+
[AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement;
|
|
2485
|
+
[AST_NODE_TYPES.Literal]: ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
|
|
2486
|
+
[AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression;
|
|
2487
|
+
[AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
|
|
2488
|
+
[AST_NODE_TYPES.MetaProperty]: ts.MetaProperty;
|
|
2489
|
+
[AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2490
|
+
[AST_NODE_TYPES.NewExpression]: ts.NewExpression;
|
|
2491
|
+
[AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression;
|
|
2492
|
+
[AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
|
|
2493
|
+
[AST_NODE_TYPES.Program]: ts.SourceFile;
|
|
2494
|
+
[AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
|
|
2495
|
+
[AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
|
|
2496
|
+
[AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement;
|
|
2497
|
+
[AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression;
|
|
2498
|
+
[AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
|
|
2499
|
+
[AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration;
|
|
2500
|
+
[AST_NODE_TYPES.Super]: ts.SuperExpression;
|
|
2501
|
+
[AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause;
|
|
2502
|
+
[AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement;
|
|
2503
|
+
[AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression;
|
|
2504
|
+
[AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail;
|
|
2505
|
+
[AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression;
|
|
2506
|
+
[AST_NODE_TYPES.ThisExpression]: ts.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
|
|
2507
|
+
[AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement;
|
|
2508
|
+
[AST_NODE_TYPES.TryStatement]: ts.TryStatement;
|
|
2509
|
+
[AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration;
|
|
2510
|
+
[AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2511
|
+
[AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration;
|
|
2512
|
+
[AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode;
|
|
2513
|
+
[AST_NODE_TYPES.TSAsExpression]: ts.AsExpression;
|
|
2514
|
+
[AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration;
|
|
2515
|
+
[AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments;
|
|
2516
|
+
[AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode;
|
|
2517
|
+
[AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode;
|
|
2518
|
+
[AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration;
|
|
2519
|
+
[AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration;
|
|
2520
|
+
[AST_NODE_TYPES.TSEnumBody]: ts.EnumDeclaration;
|
|
2521
|
+
[AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration;
|
|
2522
|
+
[AST_NODE_TYPES.TSEnumMember]: ts.EnumMember;
|
|
2523
|
+
[AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment;
|
|
2524
|
+
[AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference;
|
|
2525
|
+
[AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode;
|
|
2526
|
+
[AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration;
|
|
2527
|
+
[AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode;
|
|
2528
|
+
[AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode;
|
|
2529
|
+
[AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration;
|
|
2530
|
+
[AST_NODE_TYPES.TSInferType]: ts.InferTypeNode;
|
|
2531
|
+
[AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments;
|
|
2532
|
+
[AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration;
|
|
2533
|
+
[AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration;
|
|
2534
|
+
[AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments;
|
|
2535
|
+
[AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode;
|
|
2536
|
+
[AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode;
|
|
2537
|
+
[AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode;
|
|
2538
|
+
[AST_NODE_TYPES.TSMethodSignature]: ts.GetAccessorDeclaration | ts.MethodSignature | ts.SetAccessorDeclaration;
|
|
2539
|
+
[AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock;
|
|
2540
|
+
[AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration;
|
|
2541
|
+
[AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember;
|
|
2542
|
+
[AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration;
|
|
2543
|
+
[AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression;
|
|
2544
|
+
[AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode;
|
|
2545
|
+
[AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration;
|
|
2546
|
+
[AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature;
|
|
2547
|
+
[AST_NODE_TYPES.TSQualifiedName]: ts.Identifier | ts.QualifiedName;
|
|
2548
|
+
[AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
|
|
2549
|
+
[AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression;
|
|
2550
|
+
[AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode;
|
|
2551
|
+
[AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode;
|
|
2552
|
+
[AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode;
|
|
2553
|
+
[AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration;
|
|
2554
|
+
[AST_NODE_TYPES.TSTypeAnnotation]: undefined;
|
|
2555
|
+
[AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion;
|
|
2556
|
+
[AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode;
|
|
2557
|
+
[AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode;
|
|
2558
|
+
[AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration;
|
|
2559
|
+
[AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined;
|
|
2560
|
+
[AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
|
|
2561
|
+
[AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode;
|
|
2562
|
+
[AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
|
|
2563
|
+
[AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode;
|
|
2564
|
+
[AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode;
|
|
2565
|
+
[AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
|
|
2566
|
+
[AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
|
|
2567
|
+
[AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement;
|
|
2568
|
+
[AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration;
|
|
2569
|
+
[AST_NODE_TYPES.WhileStatement]: ts.WhileStatement;
|
|
2570
|
+
[AST_NODE_TYPES.WithStatement]: ts.WithStatement;
|
|
2571
|
+
[AST_NODE_TYPES.YieldExpression]: ts.YieldExpression;
|
|
2572
|
+
[AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
|
2573
|
+
[AST_NODE_TYPES.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
|
|
2574
|
+
[AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode;
|
|
2575
|
+
[AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode;
|
|
2576
|
+
[AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode;
|
|
2577
|
+
[AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode;
|
|
2578
|
+
[AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode;
|
|
2579
|
+
[AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
|
|
2580
|
+
[AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode;
|
|
2581
|
+
[AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode;
|
|
2582
|
+
[AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode;
|
|
2583
|
+
[AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode;
|
|
2584
|
+
[AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode;
|
|
2585
|
+
[AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode;
|
|
2586
|
+
[AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode;
|
|
2587
|
+
[AST_NODE_TYPES.TSAsyncKeyword]: ts.Token<ts.SyntaxKind.AsyncKeyword>;
|
|
2588
|
+
[AST_NODE_TYPES.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
|
|
2589
|
+
[AST_NODE_TYPES.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
|
|
2590
|
+
[AST_NODE_TYPES.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
|
|
2591
|
+
[AST_NODE_TYPES.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
|
|
2592
|
+
[AST_NODE_TYPES.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
|
|
2593
|
+
[AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
|
|
2594
|
+
[AST_NODE_TYPES.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
|
|
4930
2595
|
}
|
|
4931
2596
|
/**
|
|
4932
2597
|
* Maps TSESTree AST Node type to the expected TypeScript AST Node type(s).
|
|
4933
2598
|
* This mapping is based on the internal logic of the parser.
|
|
4934
2599
|
*/
|
|
4935
|
-
type TSESTreeToTSNode<T extends Node
|
|
2600
|
+
type TSESTreeToTSNode<T extends Node = Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
|
4936
2601
|
|
|
4937
2602
|
declare module 'typescript' {
|
|
4938
2603
|
enum JSDocParsingMode {
|
|
@@ -4947,7 +2612,7 @@ interface ParserWeakMap<Key, ValueBase> {
|
|
|
4947
2612
|
get<Value extends ValueBase>(key: Key): Value;
|
|
4948
2613
|
has(key: unknown): boolean;
|
|
4949
2614
|
}
|
|
4950
|
-
interface ParserWeakMapESTreeToTSNode<Key extends Node
|
|
2615
|
+
interface ParserWeakMapESTreeToTSNode<Key extends Node = Node> {
|
|
4951
2616
|
get<KeyBase extends Key>(key: KeyBase): TSESTreeToTSNode<KeyBase>;
|
|
4952
2617
|
has(key: unknown): boolean;
|
|
4953
2618
|
}
|
|
@@ -4958,15 +2623,15 @@ interface ParserServicesBase {
|
|
|
4958
2623
|
}
|
|
4959
2624
|
interface ParserServicesNodeMaps {
|
|
4960
2625
|
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
|
4961
|
-
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node
|
|
2626
|
+
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, Node>;
|
|
4962
2627
|
}
|
|
4963
2628
|
interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
|
|
4964
|
-
getSymbolAtLocation: (node: Node
|
|
4965
|
-
getTypeAtLocation: (node: Node
|
|
4966
|
-
getContextualType: (node: Expression
|
|
4967
|
-
getResolvedSignature: (node: CallExpression
|
|
4968
|
-
getTypeFromTypeNode: (node: TypeNode
|
|
4969
|
-
getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node
|
|
2629
|
+
getSymbolAtLocation: (node: Node) => ts.Symbol | undefined;
|
|
2630
|
+
getTypeAtLocation: (node: Node) => ts.Type;
|
|
2631
|
+
getContextualType: (node: Expression) => ts.Type | undefined;
|
|
2632
|
+
getResolvedSignature: (node: CallExpression | NewExpression) => ts.Signature | undefined;
|
|
2633
|
+
getTypeFromTypeNode: (node: TypeNode) => ts.Type;
|
|
2634
|
+
getTypeOfSymbolAtLocation: (symbol: ts.Symbol, node: Node) => ts.Type;
|
|
4970
2635
|
program: ts.Program;
|
|
4971
2636
|
}
|
|
4972
2637
|
interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, ParserServicesBase {
|
|
@@ -4975,10 +2640,10 @@ interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps, P
|
|
|
4975
2640
|
type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
|
|
4976
2641
|
|
|
4977
2642
|
declare namespace AST {
|
|
4978
|
-
type TokenType = AST_TOKEN_TYPES
|
|
4979
|
-
type Token = Token
|
|
4980
|
-
type SourceLocation = SourceLocation
|
|
4981
|
-
type Range = Range
|
|
2643
|
+
type TokenType = AST_TOKEN_TYPES;
|
|
2644
|
+
type Token = Token;
|
|
2645
|
+
type SourceLocation = SourceLocation;
|
|
2646
|
+
type Range = Range;
|
|
4982
2647
|
}
|
|
4983
2648
|
|
|
4984
2649
|
declare enum DefinitionType {
|
|
@@ -4995,7 +2660,7 @@ declare enum DefinitionType {
|
|
|
4995
2660
|
Variable = "Variable"
|
|
4996
2661
|
}
|
|
4997
2662
|
|
|
4998
|
-
declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node
|
|
2663
|
+
declare abstract class DefinitionBase<Type extends DefinitionType, Node extends NodeWithParent, Parent extends Node | null, Name extends Node> {
|
|
4999
2664
|
/**
|
|
5000
2665
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
5001
2666
|
*/
|
|
@@ -5027,75 +2692,75 @@ declare abstract class DefinitionBase<Type extends DefinitionType, Node extends
|
|
|
5027
2692
|
abstract readonly isVariableDefinition: boolean;
|
|
5028
2693
|
}
|
|
5029
2694
|
|
|
5030
|
-
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause
|
|
2695
|
+
declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, CatchClause, null, Identifier> {
|
|
5031
2696
|
readonly isTypeDefinition = false;
|
|
5032
2697
|
readonly isVariableDefinition = true;
|
|
5033
|
-
constructor(name: Identifier
|
|
2698
|
+
constructor(name: Identifier, node: CatchClauseDefinition['node']);
|
|
5034
2699
|
}
|
|
5035
2700
|
|
|
5036
|
-
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration
|
|
2701
|
+
declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, ClassDeclaration | ClassExpression, null, Identifier> {
|
|
5037
2702
|
readonly isTypeDefinition = true;
|
|
5038
2703
|
readonly isVariableDefinition = true;
|
|
5039
|
-
constructor(name: Identifier
|
|
2704
|
+
constructor(name: Identifier, node: ClassNameDefinition['node']);
|
|
5040
2705
|
}
|
|
5041
2706
|
|
|
5042
|
-
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration
|
|
2707
|
+
declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression, null, Identifier> {
|
|
5043
2708
|
readonly isTypeDefinition = false;
|
|
5044
2709
|
readonly isVariableDefinition = true;
|
|
5045
|
-
constructor(name: Identifier
|
|
2710
|
+
constructor(name: Identifier, node: FunctionNameDefinition['node']);
|
|
5046
2711
|
}
|
|
5047
2712
|
|
|
5048
|
-
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName
|
|
2713
|
+
declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, NodeWithParent, null, BindingName> {
|
|
5049
2714
|
readonly isTypeDefinition = false;
|
|
5050
2715
|
readonly isVariableDefinition = true;
|
|
5051
|
-
constructor(name: BindingName
|
|
2716
|
+
constructor(name: BindingName, node: ImplicitGlobalVariableDefinition['node']);
|
|
5052
2717
|
}
|
|
5053
2718
|
|
|
5054
|
-
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier
|
|
2719
|
+
declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | TSImportEqualsDeclaration, ImportDeclaration | TSImportEqualsDeclaration, Identifier> {
|
|
5055
2720
|
readonly isTypeDefinition = true;
|
|
5056
2721
|
readonly isVariableDefinition = true;
|
|
5057
|
-
constructor(name: Identifier
|
|
5058
|
-
constructor(name: Identifier
|
|
2722
|
+
constructor(name: Identifier, node: TSImportEqualsDeclaration, decl: TSImportEqualsDeclaration);
|
|
2723
|
+
constructor(name: Identifier, node: Exclude<ImportBindingDefinition['node'], TSImportEqualsDeclaration>, decl: ImportDeclaration);
|
|
5059
2724
|
}
|
|
5060
2725
|
|
|
5061
|
-
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression
|
|
2726
|
+
declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSEmptyBodyFunctionExpression | TSFunctionType | TSMethodSignature, null, BindingName> {
|
|
5062
2727
|
/**
|
|
5063
2728
|
* Whether the parameter definition is a part of a rest parameter.
|
|
5064
2729
|
*/
|
|
5065
2730
|
readonly isTypeDefinition = false;
|
|
5066
2731
|
readonly isVariableDefinition = true;
|
|
5067
2732
|
readonly rest: boolean;
|
|
5068
|
-
constructor(name: BindingName
|
|
2733
|
+
constructor(name: BindingName, node: ParameterDefinition['node'], rest: boolean);
|
|
5069
2734
|
}
|
|
5070
2735
|
|
|
5071
|
-
declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember
|
|
2736
|
+
declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSEnumMember, null, Identifier | StringLiteral> {
|
|
5072
2737
|
readonly isTypeDefinition = true;
|
|
5073
2738
|
readonly isVariableDefinition = true;
|
|
5074
|
-
constructor(name: Identifier
|
|
2739
|
+
constructor(name: Identifier | StringLiteral, node: TSEnumMemberDefinition['node']);
|
|
5075
2740
|
}
|
|
5076
2741
|
|
|
5077
|
-
declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration
|
|
2742
|
+
declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSEnumDeclaration, null, Identifier> {
|
|
5078
2743
|
readonly isTypeDefinition = true;
|
|
5079
2744
|
readonly isVariableDefinition = true;
|
|
5080
|
-
constructor(name: Identifier
|
|
2745
|
+
constructor(name: Identifier, node: TSEnumNameDefinition['node']);
|
|
5081
2746
|
}
|
|
5082
2747
|
|
|
5083
|
-
declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration
|
|
2748
|
+
declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSModuleDeclaration, null, Identifier> {
|
|
5084
2749
|
readonly isTypeDefinition = true;
|
|
5085
2750
|
readonly isVariableDefinition = true;
|
|
5086
|
-
constructor(name: Identifier
|
|
2751
|
+
constructor(name: Identifier, node: TSModuleNameDefinition['node']);
|
|
5087
2752
|
}
|
|
5088
2753
|
|
|
5089
|
-
declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration
|
|
2754
|
+
declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSInterfaceDeclaration | TSMappedType | TSTypeAliasDeclaration | TSTypeParameter, null, Identifier> {
|
|
5090
2755
|
readonly isTypeDefinition = true;
|
|
5091
2756
|
readonly isVariableDefinition = false;
|
|
5092
|
-
constructor(name: Identifier
|
|
2757
|
+
constructor(name: Identifier, node: TypeDefinition['node']);
|
|
5093
2758
|
}
|
|
5094
2759
|
|
|
5095
|
-
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator
|
|
2760
|
+
declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, VariableDeclarator, VariableDeclaration, Identifier> {
|
|
5096
2761
|
readonly isTypeDefinition = false;
|
|
5097
2762
|
readonly isVariableDefinition = true;
|
|
5098
|
-
constructor(name: Identifier
|
|
2763
|
+
constructor(name: Identifier, node: VariableDefinition['node'], decl: VariableDeclaration);
|
|
5099
2764
|
}
|
|
5100
2765
|
|
|
5101
2766
|
type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
|
|
@@ -5107,7 +2772,7 @@ declare enum ReferenceFlag {
|
|
|
5107
2772
|
}
|
|
5108
2773
|
interface ReferenceImplicitGlobal {
|
|
5109
2774
|
node: NodeWithParent;
|
|
5110
|
-
pattern: BindingName
|
|
2775
|
+
pattern: BindingName;
|
|
5111
2776
|
ref?: Reference;
|
|
5112
2777
|
}
|
|
5113
2778
|
declare enum ReferenceTypeFlag {
|
|
@@ -5132,7 +2797,7 @@ declare class Reference {
|
|
|
5132
2797
|
* Identifier syntax node.
|
|
5133
2798
|
* @public
|
|
5134
2799
|
*/
|
|
5135
|
-
readonly identifier: Identifier
|
|
2800
|
+
readonly identifier: Identifier | JSXIdentifier;
|
|
5136
2801
|
/**
|
|
5137
2802
|
* `true` if this writing reference is a variable initializer or a default value.
|
|
5138
2803
|
* @public
|
|
@@ -5148,8 +2813,8 @@ declare class Reference {
|
|
|
5148
2813
|
* If reference is writeable, this is the node being written to it.
|
|
5149
2814
|
* @public
|
|
5150
2815
|
*/
|
|
5151
|
-
readonly writeExpr?: Node
|
|
5152
|
-
constructor(identifier: Identifier
|
|
2816
|
+
readonly writeExpr?: Node | null;
|
|
2817
|
+
constructor(identifier: Identifier | JSXIdentifier, scope: Scope$1, flag: ReferenceFlag, writeExpr?: Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag);
|
|
5153
2818
|
/**
|
|
5154
2819
|
* True if this reference can reference types
|
|
5155
2820
|
*/
|
|
@@ -5205,7 +2870,7 @@ declare class VariableBase {
|
|
|
5205
2870
|
* If this variable is redeclared, this array includes two or more nodes.
|
|
5206
2871
|
* @public
|
|
5207
2872
|
*/
|
|
5208
|
-
readonly identifiers: Identifier
|
|
2873
|
+
readonly identifiers: Identifier[];
|
|
5209
2874
|
/**
|
|
5210
2875
|
* The variable name, as given in the source code.
|
|
5211
2876
|
* @public
|
|
@@ -5252,7 +2917,7 @@ declare class ESLintScopeVariable extends VariableBase {
|
|
|
5252
2917
|
* If this key exists, it is a global variable added by ESLint.
|
|
5253
2918
|
* If `true`, this global variable was defined by a globals comment directive in the source code file.
|
|
5254
2919
|
*/
|
|
5255
|
-
eslintExplicitGlobalComments?: Comment
|
|
2920
|
+
eslintExplicitGlobalComments?: Comment[];
|
|
5256
2921
|
}
|
|
5257
2922
|
|
|
5258
2923
|
/**
|
|
@@ -5301,12 +2966,12 @@ declare enum ScopeType {
|
|
|
5301
2966
|
with = "with"
|
|
5302
2967
|
}
|
|
5303
2968
|
|
|
5304
|
-
declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression
|
|
2969
|
+
declare class FunctionScope extends ScopeBase<ScopeType.function, ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | Program | TSDeclareFunction | TSEmptyBodyFunctionExpression, Scope$1> {
|
|
5305
2970
|
constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean);
|
|
5306
2971
|
protected isValidResolution(ref: Reference, variable: Variable): boolean;
|
|
5307
2972
|
}
|
|
5308
2973
|
|
|
5309
|
-
declare class GlobalScope extends ScopeBase<ScopeType.global, Program
|
|
2974
|
+
declare class GlobalScope extends ScopeBase<ScopeType.global, Program,
|
|
5310
2975
|
/**
|
|
5311
2976
|
* The global scope has no parent.
|
|
5312
2977
|
*/
|
|
@@ -5318,16 +2983,16 @@ null> {
|
|
|
5318
2983
|
defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void;
|
|
5319
2984
|
}
|
|
5320
2985
|
|
|
5321
|
-
declare class ModuleScope extends ScopeBase<ScopeType.module, Program
|
|
2986
|
+
declare class ModuleScope extends ScopeBase<ScopeType.module, Program, Scope$1> {
|
|
5322
2987
|
constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']);
|
|
5323
2988
|
}
|
|
5324
2989
|
|
|
5325
|
-
declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration
|
|
2990
|
+
declare class TSModuleScope extends ScopeBase<ScopeType.tsModule, TSModuleDeclaration, Scope$1> {
|
|
5326
2991
|
constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']);
|
|
5327
2992
|
}
|
|
5328
2993
|
|
|
5329
2994
|
type VariableScope = FunctionScope | GlobalScope | ModuleScope | TSModuleScope;
|
|
5330
|
-
declare abstract class ScopeBase<Type extends ScopeType, Block extends Node
|
|
2995
|
+
declare abstract class ScopeBase<Type extends ScopeType, Block extends Node, Upper extends Scope$1 | null> {
|
|
5331
2996
|
#private;
|
|
5332
2997
|
/**
|
|
5333
2998
|
* A unique ID for this instance - primarily used to help debugging and testing
|
|
@@ -5399,70 +3064,70 @@ declare abstract class ScopeBase<Type extends ScopeType, Block extends Node$1, U
|
|
|
5399
3064
|
* To override by function scopes.
|
|
5400
3065
|
* References in default parameters isn't resolved to variables which are in their function body.
|
|
5401
3066
|
*/
|
|
5402
|
-
protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier
|
|
3067
|
+
protected defineVariable(nameOrVariable: string | Variable, set: Map<string, Variable>, variables: Variable[], node: Identifier | null, def: Definition | null): void;
|
|
5403
3068
|
protected delegateToUpperScope(ref: Reference): void;
|
|
5404
3069
|
protected isValidResolution(_ref: Reference, _variable: Variable): boolean;
|
|
5405
3070
|
private addDeclaredVariablesOfNode;
|
|
5406
|
-
defineIdentifier(node: Identifier
|
|
5407
|
-
defineLiteralIdentifier(node: StringLiteral
|
|
5408
|
-
referenceDualValueType(node: Identifier
|
|
5409
|
-
referenceType(node: Identifier
|
|
5410
|
-
referenceValue(node: Identifier
|
|
3071
|
+
defineIdentifier(node: Identifier, def: Definition): void;
|
|
3072
|
+
defineLiteralIdentifier(node: StringLiteral, def: Definition): void;
|
|
3073
|
+
referenceDualValueType(node: Identifier): void;
|
|
3074
|
+
referenceType(node: Identifier): void;
|
|
3075
|
+
referenceValue(node: Identifier | JSXIdentifier, assign?: ReferenceFlag, writeExpr?: Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void;
|
|
5411
3076
|
}
|
|
5412
3077
|
|
|
5413
|
-
declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause
|
|
3078
|
+
declare class CatchScope extends ScopeBase<ScopeType.catch, CatchClause, Scope$1> {
|
|
5414
3079
|
constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']);
|
|
5415
3080
|
}
|
|
5416
3081
|
|
|
5417
|
-
declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration
|
|
3082
|
+
declare class ClassScope extends ScopeBase<ScopeType.class, ClassDeclaration | ClassExpression, Scope$1> {
|
|
5418
3083
|
constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']);
|
|
5419
3084
|
}
|
|
5420
3085
|
|
|
5421
|
-
declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock
|
|
3086
|
+
declare class ClassStaticBlockScope extends ScopeBase<ScopeType.classStaticBlock, StaticBlock, Scope$1> {
|
|
5422
3087
|
constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']);
|
|
5423
3088
|
}
|
|
5424
3089
|
|
|
5425
|
-
declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType
|
|
3090
|
+
declare class ConditionalTypeScope extends ScopeBase<ScopeType.conditionalType, TSConditionalType, Scope$1> {
|
|
5426
3091
|
constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']);
|
|
5427
3092
|
}
|
|
5428
3093
|
|
|
5429
|
-
declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement
|
|
3094
|
+
declare class ForScope extends ScopeBase<ScopeType.for, ForInStatement | ForOfStatement | ForStatement, Scope$1> {
|
|
5430
3095
|
constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']);
|
|
5431
3096
|
}
|
|
5432
3097
|
|
|
5433
|
-
declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression
|
|
3098
|
+
declare class FunctionExpressionNameScope extends ScopeBase<ScopeType.functionExpressionName, FunctionExpression, Scope$1> {
|
|
5434
3099
|
readonly functionExpressionScope: true;
|
|
5435
3100
|
constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']);
|
|
5436
3101
|
}
|
|
5437
3102
|
|
|
5438
|
-
declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration
|
|
3103
|
+
declare class FunctionTypeScope extends ScopeBase<ScopeType.functionType, TSCallSignatureDeclaration | TSConstructorType | TSConstructSignatureDeclaration | TSFunctionType | TSMethodSignature, Scope$1> {
|
|
5439
3104
|
constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']);
|
|
5440
3105
|
}
|
|
5441
3106
|
|
|
5442
|
-
declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType
|
|
3107
|
+
declare class MappedTypeScope extends ScopeBase<ScopeType.mappedType, TSMappedType, Scope$1> {
|
|
5443
3108
|
constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']);
|
|
5444
3109
|
}
|
|
5445
3110
|
|
|
5446
|
-
declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement
|
|
3111
|
+
declare class SwitchScope extends ScopeBase<ScopeType.switch, SwitchStatement, Scope$1> {
|
|
5447
3112
|
constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']);
|
|
5448
3113
|
}
|
|
5449
3114
|
|
|
5450
|
-
declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration
|
|
3115
|
+
declare class TSEnumScope extends ScopeBase<ScopeType.tsEnum, TSEnumDeclaration, Scope$1> {
|
|
5451
3116
|
constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']);
|
|
5452
3117
|
}
|
|
5453
3118
|
|
|
5454
|
-
declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration
|
|
3119
|
+
declare class TypeScope extends ScopeBase<ScopeType.type, TSInterfaceDeclaration | TSTypeAliasDeclaration, Scope$1> {
|
|
5455
3120
|
constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']);
|
|
5456
3121
|
}
|
|
5457
3122
|
|
|
5458
|
-
declare class WithScope extends ScopeBase<ScopeType.with, WithStatement
|
|
3123
|
+
declare class WithScope extends ScopeBase<ScopeType.with, WithStatement, Scope$1> {
|
|
5459
3124
|
constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']);
|
|
5460
3125
|
close(scopeManager: ScopeManager): Scope$1 | null;
|
|
5461
3126
|
}
|
|
5462
3127
|
|
|
5463
3128
|
type Scope$1 = BlockScope | CatchScope | ClassFieldInitializerScope | ClassScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope;
|
|
5464
3129
|
|
|
5465
|
-
declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression
|
|
3130
|
+
declare class ClassFieldInitializerScope extends ScopeBase<ScopeType.classFieldInitializer, Expression, Scope$1> {
|
|
5466
3131
|
constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']);
|
|
5467
3132
|
}
|
|
5468
3133
|
|
|
@@ -5477,12 +3142,12 @@ interface ScopeManagerOptions {
|
|
|
5477
3142
|
declare class ScopeManager {
|
|
5478
3143
|
#private;
|
|
5479
3144
|
currentScope: Scope$1 | null;
|
|
5480
|
-
readonly declaredVariables: WeakMap<Node
|
|
3145
|
+
readonly declaredVariables: WeakMap<Node, Variable[]>;
|
|
5481
3146
|
/**
|
|
5482
3147
|
* The root scope
|
|
5483
3148
|
*/
|
|
5484
3149
|
globalScope: GlobalScope | null;
|
|
5485
|
-
readonly nodeToScope: WeakMap<Node
|
|
3150
|
+
readonly nodeToScope: WeakMap<Node, Scope$1[]>;
|
|
5486
3151
|
/**
|
|
5487
3152
|
* All scopes
|
|
5488
3153
|
* @public
|
|
@@ -5500,7 +3165,7 @@ declare class ScopeManager {
|
|
|
5500
3165
|
* If the node does not define any variable, this returns an empty array.
|
|
5501
3166
|
* @param node An AST node to get their variables.
|
|
5502
3167
|
*/
|
|
5503
|
-
getDeclaredVariables(node: Node
|
|
3168
|
+
getDeclaredVariables(node: Node): Variable[];
|
|
5504
3169
|
/**
|
|
5505
3170
|
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
|
|
5506
3171
|
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
|
|
@@ -5509,7 +3174,7 @@ declare class ScopeManager {
|
|
|
5509
3174
|
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
|
|
5510
3175
|
* If `inner` is `true` then this returns the innermost scope.
|
|
5511
3176
|
*/
|
|
5512
|
-
acquire(node: Node
|
|
3177
|
+
acquire(node: Node, inner?: boolean): Scope$1 | null;
|
|
5513
3178
|
/**
|
|
5514
3179
|
* Adds dynamically created globals to the global scope and resolve their references.
|
|
5515
3180
|
* This method is called by ESLint.
|
|
@@ -5537,7 +3202,7 @@ declare class ScopeManager {
|
|
|
5537
3202
|
protected nestScope<T extends Scope$1>(scope: T): T;
|
|
5538
3203
|
}
|
|
5539
3204
|
|
|
5540
|
-
declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement
|
|
3205
|
+
declare class BlockScope extends ScopeBase<ScopeType.block, BlockStatement, Scope$1> {
|
|
5541
3206
|
constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']);
|
|
5542
3207
|
}
|
|
5543
3208
|
|
|
@@ -5643,13 +3308,13 @@ declare namespace Parser {
|
|
|
5643
3308
|
/**
|
|
5644
3309
|
* Parses the given text into an ESTree AST
|
|
5645
3310
|
*/
|
|
5646
|
-
parse(text: string, options?: ParserOptions): Program
|
|
3311
|
+
parse(text: string, options?: ParserOptions): Program;
|
|
5647
3312
|
};
|
|
5648
3313
|
interface ParseResult {
|
|
5649
3314
|
/**
|
|
5650
3315
|
* The ESTree AST
|
|
5651
3316
|
*/
|
|
5652
|
-
ast: Program
|
|
3317
|
+
ast: Program;
|
|
5653
3318
|
/**
|
|
5654
3319
|
* A `ScopeManager` object.
|
|
5655
3320
|
* Custom parsers can use customized scope analysis for experimental/enhancement syntaxes.
|
|
@@ -6069,32 +3734,32 @@ declare class TokenStore {
|
|
|
6069
3734
|
* @param right The node to check.
|
|
6070
3735
|
* @returns `true` if one or more comments exist.
|
|
6071
3736
|
*/
|
|
6072
|
-
commentsExistBetween(left: Node
|
|
3737
|
+
commentsExistBetween(left: Node | Token, right: Node | Token): boolean;
|
|
6073
3738
|
/**
|
|
6074
3739
|
* Gets all comment tokens directly after the given node or token.
|
|
6075
3740
|
* @param nodeOrToken The AST node or token to check for adjacent comment tokens.
|
|
6076
3741
|
* @returns An array of comments in occurrence order.
|
|
6077
3742
|
*/
|
|
6078
|
-
getCommentsAfter(nodeOrToken: Node
|
|
3743
|
+
getCommentsAfter(nodeOrToken: Node | Token): Comment[];
|
|
6079
3744
|
/**
|
|
6080
3745
|
* Gets all comment tokens directly before the given node or token.
|
|
6081
3746
|
* @param nodeOrToken The AST node or token to check for adjacent comment tokens.
|
|
6082
3747
|
* @returns An array of comments in occurrence order.
|
|
6083
3748
|
*/
|
|
6084
|
-
getCommentsBefore(nodeOrToken: Node
|
|
3749
|
+
getCommentsBefore(nodeOrToken: Node | Token): Comment[];
|
|
6085
3750
|
/**
|
|
6086
3751
|
* Gets all comment tokens inside the given node.
|
|
6087
3752
|
* @param node The AST node to get the comments for.
|
|
6088
3753
|
* @returns An array of comments in occurrence order.
|
|
6089
3754
|
*/
|
|
6090
|
-
getCommentsInside(node: Node
|
|
3755
|
+
getCommentsInside(node: Node): Comment[];
|
|
6091
3756
|
/**
|
|
6092
3757
|
* Gets the first token of the given node.
|
|
6093
3758
|
* @param node The AST node.
|
|
6094
3759
|
* @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`.
|
|
6095
3760
|
* @returns An object representing the token.
|
|
6096
3761
|
*/
|
|
6097
|
-
getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node
|
|
3762
|
+
getFirstToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6098
3763
|
/**
|
|
6099
3764
|
* Gets the first token between two non-overlapping nodes.
|
|
6100
3765
|
* @param left Node before the desired token range.
|
|
@@ -6102,13 +3767,13 @@ declare class TokenStore {
|
|
|
6102
3767
|
* @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`.
|
|
6103
3768
|
* @returns An object representing the token.
|
|
6104
3769
|
*/
|
|
6105
|
-
getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node
|
|
3770
|
+
getFirstTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6106
3771
|
/**
|
|
6107
3772
|
* Gets the first `count` tokens of the given node.
|
|
6108
3773
|
* @param node The AST node.
|
|
6109
3774
|
* @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`.
|
|
6110
3775
|
*/
|
|
6111
|
-
getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node
|
|
3776
|
+
getFirstTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6112
3777
|
/**
|
|
6113
3778
|
* Gets the first `count` tokens between two non-overlapping nodes.
|
|
6114
3779
|
* @param left Node before the desired token range.
|
|
@@ -6116,14 +3781,14 @@ declare class TokenStore {
|
|
|
6116
3781
|
* @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`.
|
|
6117
3782
|
* @returns Tokens between left and right.
|
|
6118
3783
|
*/
|
|
6119
|
-
getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node
|
|
3784
|
+
getFirstTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6120
3785
|
/**
|
|
6121
3786
|
* Gets the last token of the given node.
|
|
6122
3787
|
* @param node The AST node.
|
|
6123
3788
|
* @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`.
|
|
6124
3789
|
* @returns An object representing the token.
|
|
6125
3790
|
*/
|
|
6126
|
-
getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node
|
|
3791
|
+
getLastToken<T extends SourceCode.CursorWithSkipOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6127
3792
|
/**
|
|
6128
3793
|
* Gets the last token between two non-overlapping nodes.
|
|
6129
3794
|
* @param left Node before the desired token range.
|
|
@@ -6131,13 +3796,13 @@ declare class TokenStore {
|
|
|
6131
3796
|
* @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`.
|
|
6132
3797
|
* @returns An object representing the token.
|
|
6133
3798
|
*/
|
|
6134
|
-
getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node
|
|
3799
|
+
getLastTokenBetween<T extends SourceCode.CursorWithSkipOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6135
3800
|
/**
|
|
6136
3801
|
* Gets the last `count` tokens of the given node.
|
|
6137
3802
|
* @param node The AST node.
|
|
6138
3803
|
* @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`.
|
|
6139
3804
|
*/
|
|
6140
|
-
getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node
|
|
3805
|
+
getLastTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6141
3806
|
/**
|
|
6142
3807
|
* Gets the last `count` tokens between two non-overlapping nodes.
|
|
6143
3808
|
* @param left Node before the desired token range.
|
|
@@ -6145,21 +3810,21 @@ declare class TokenStore {
|
|
|
6145
3810
|
* @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`.
|
|
6146
3811
|
* @returns Tokens between left and right.
|
|
6147
3812
|
*/
|
|
6148
|
-
getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node
|
|
3813
|
+
getLastTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6149
3814
|
/**
|
|
6150
3815
|
* Gets the token that follows a given node or token.
|
|
6151
3816
|
* @param node The AST node or token.
|
|
6152
3817
|
* @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`.
|
|
6153
3818
|
* @returns An object representing the token.
|
|
6154
3819
|
*/
|
|
6155
|
-
getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node
|
|
3820
|
+
getTokenAfter<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6156
3821
|
/**
|
|
6157
3822
|
* Gets the token that precedes a given node or token.
|
|
6158
3823
|
* @param node The AST node or token.
|
|
6159
3824
|
* @param options The option object
|
|
6160
3825
|
* @returns An object representing the token.
|
|
6161
3826
|
*/
|
|
6162
|
-
getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node
|
|
3827
|
+
getTokenBefore<T extends SourceCode.CursorWithSkipOptions>(node: Node | Token, options?: T): SourceCode.ReturnTypeFromOptions<T> | null;
|
|
6163
3828
|
/**
|
|
6164
3829
|
* Gets the token starting at the specified index.
|
|
6165
3830
|
* @param offset Index of the start of the token's range.
|
|
@@ -6176,26 +3841,26 @@ declare class TokenStore {
|
|
|
6176
3841
|
* @param afterCount The number of tokens after the node to retrieve.
|
|
6177
3842
|
* @returns Array of objects representing tokens.
|
|
6178
3843
|
*/
|
|
6179
|
-
getTokens(node: Node
|
|
3844
|
+
getTokens(node: Node, beforeCount?: number, afterCount?: number): Token[];
|
|
6180
3845
|
/**
|
|
6181
3846
|
* Gets all tokens that are related to the given node.
|
|
6182
3847
|
* @param node The AST node.
|
|
6183
3848
|
* @param options The option object. If this is a function then it's `options.filter`.
|
|
6184
3849
|
* @returns Array of objects representing tokens.
|
|
6185
3850
|
*/
|
|
6186
|
-
getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node
|
|
3851
|
+
getTokens<T extends SourceCode.CursorWithCountOptions>(node: Node, options: T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6187
3852
|
/**
|
|
6188
3853
|
* Gets the `count` tokens that follows a given node or token.
|
|
6189
3854
|
* @param node The AST node.
|
|
6190
3855
|
* @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`.
|
|
6191
3856
|
*/
|
|
6192
|
-
getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node
|
|
3857
|
+
getTokensAfter<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6193
3858
|
/**
|
|
6194
3859
|
* Gets the `count` tokens that precedes a given node or token.
|
|
6195
3860
|
* @param node The AST node.
|
|
6196
3861
|
* @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`.
|
|
6197
3862
|
*/
|
|
6198
|
-
getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node
|
|
3863
|
+
getTokensBefore<T extends SourceCode.CursorWithCountOptions>(node: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6199
3864
|
/**
|
|
6200
3865
|
* Gets all of the tokens between two non-overlapping nodes.
|
|
6201
3866
|
* @param left Node before the desired token range.
|
|
@@ -6203,7 +3868,7 @@ declare class TokenStore {
|
|
|
6203
3868
|
* @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`.
|
|
6204
3869
|
* @returns Tokens between left and right.
|
|
6205
3870
|
*/
|
|
6206
|
-
getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node
|
|
3871
|
+
getTokensBetween<T extends SourceCode.CursorWithCountOptions>(left: Node | Token, right: Node | Token, options?: number | T): SourceCode.ReturnTypeFromOptions<T>[];
|
|
6207
3872
|
}
|
|
6208
3873
|
declare class SourceCodeBase extends TokenStore {
|
|
6209
3874
|
/**
|
|
@@ -6227,13 +3892,13 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6227
3892
|
* Retrieves an array containing all comments in the source code.
|
|
6228
3893
|
* @returns An array of comment nodes.
|
|
6229
3894
|
*/
|
|
6230
|
-
getAllComments(): Comment
|
|
3895
|
+
getAllComments(): Comment[];
|
|
6231
3896
|
/**
|
|
6232
3897
|
* Converts a (line, column) pair into a range index.
|
|
6233
3898
|
* @param location A line/column location
|
|
6234
3899
|
* @returns The range index of the location in the file.
|
|
6235
3900
|
*/
|
|
6236
|
-
getIndexFromLoc(location: Position
|
|
3901
|
+
getIndexFromLoc(location: Position): number;
|
|
6237
3902
|
/**
|
|
6238
3903
|
* Gets the entire source text split into an array of lines.
|
|
6239
3904
|
* @returns The source text as an array of lines.
|
|
@@ -6244,13 +3909,13 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6244
3909
|
* @param index The index of a character in a file
|
|
6245
3910
|
* @returns A {line, column} location object with a 0-indexed column
|
|
6246
3911
|
*/
|
|
6247
|
-
getLocFromIndex(index: number): Position
|
|
3912
|
+
getLocFromIndex(index: number): Position;
|
|
6248
3913
|
/**
|
|
6249
3914
|
* Gets the deepest node containing a range index.
|
|
6250
3915
|
* @param index Range index of the desired node.
|
|
6251
3916
|
* @returns The node if found or `null` if not found.
|
|
6252
3917
|
*/
|
|
6253
|
-
getNodeByRangeIndex(index: number): Node
|
|
3918
|
+
getNodeByRangeIndex(index: number): Node | null;
|
|
6254
3919
|
/**
|
|
6255
3920
|
* Gets the source code for the given node.
|
|
6256
3921
|
* @param node The AST node to get the text for.
|
|
@@ -6258,7 +3923,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6258
3923
|
* @param afterCount The number of characters after the node to retrieve.
|
|
6259
3924
|
* @returns The text representing the AST node.
|
|
6260
3925
|
*/
|
|
6261
|
-
getText(node?: Node
|
|
3926
|
+
getText(node?: Node | Token, beforeCount?: number, afterCount?: number): string;
|
|
6262
3927
|
/**
|
|
6263
3928
|
* The flag to indicate that the source code has Unicode BOM.
|
|
6264
3929
|
*/
|
|
@@ -6271,7 +3936,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6271
3936
|
* @param second The second node or token to check between.
|
|
6272
3937
|
* @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens.
|
|
6273
3938
|
*/
|
|
6274
|
-
isSpaceBetween(first: Node
|
|
3939
|
+
isSpaceBetween(first: Node | Token, second: Node | Token): boolean;
|
|
6275
3940
|
/**
|
|
6276
3941
|
* Determines if two nodes or tokens have at least one whitespace character
|
|
6277
3942
|
* between them. Order does not matter. Returns false if the given nodes or
|
|
@@ -6284,28 +3949,28 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6284
3949
|
* any of the tokens found between the two given nodes or tokens.
|
|
6285
3950
|
* @deprecated in favor of isSpaceBetween
|
|
6286
3951
|
*/
|
|
6287
|
-
isSpaceBetweenTokens(first: Token
|
|
3952
|
+
isSpaceBetweenTokens(first: Token, second: Token): boolean;
|
|
6288
3953
|
/**
|
|
6289
3954
|
* Returns the scope of the given node.
|
|
6290
3955
|
* This information can be used track references to variables.
|
|
6291
3956
|
*/
|
|
6292
|
-
getScope(node: Node
|
|
3957
|
+
getScope(node: Node): Scope.Scope;
|
|
6293
3958
|
/**
|
|
6294
3959
|
* Returns an array of the ancestors of the given node, starting at
|
|
6295
3960
|
* the root of the AST and continuing through the direct parent of the current node.
|
|
6296
3961
|
* This array does not include the currently-traversed node itself.
|
|
6297
3962
|
*/
|
|
6298
|
-
getAncestors(node: Node
|
|
3963
|
+
getAncestors(node: Node): Node[];
|
|
6299
3964
|
/**
|
|
6300
3965
|
* Returns a list of variables declared by the given node.
|
|
6301
3966
|
* This information can be used to track references to variables.
|
|
6302
3967
|
*/
|
|
6303
|
-
getDeclaredVariables(node: Node
|
|
3968
|
+
getDeclaredVariables(node: Node): readonly Scope.Variable[];
|
|
6304
3969
|
/**
|
|
6305
3970
|
* Marks a variable with the given name in the current scope as used.
|
|
6306
3971
|
* This affects the no-unused-vars rule.
|
|
6307
3972
|
*/
|
|
6308
|
-
markVariableAsUsed(name: string, node: Node
|
|
3973
|
+
markVariableAsUsed(name: string, node: Node): boolean;
|
|
6309
3974
|
/**
|
|
6310
3975
|
* The source code split into lines according to ECMA-262 specification.
|
|
6311
3976
|
* This is done to avoid each rule needing to do so separately.
|
|
@@ -6332,7 +3997,7 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6332
3997
|
*
|
|
6333
3998
|
* TODO: rename to 'tokens'
|
|
6334
3999
|
*/
|
|
6335
|
-
tokensAndComments: Token
|
|
4000
|
+
tokensAndComments: Token[];
|
|
6336
4001
|
/**
|
|
6337
4002
|
* The visitor keys to traverse AST.
|
|
6338
4003
|
*/
|
|
@@ -6346,9 +4011,9 @@ declare class SourceCodeBase extends TokenStore {
|
|
|
6346
4011
|
}
|
|
6347
4012
|
declare const SourceCode_base: typeof SourceCodeBase;
|
|
6348
4013
|
declare namespace SourceCode {
|
|
6349
|
-
interface Program extends Program
|
|
6350
|
-
comments: Comment
|
|
6351
|
-
tokens: Token
|
|
4014
|
+
interface Program extends Program {
|
|
4015
|
+
comments: Comment[];
|
|
4016
|
+
tokens: Token[];
|
|
6352
4017
|
}
|
|
6353
4018
|
interface SourceCodeConfig {
|
|
6354
4019
|
/**
|
|
@@ -6373,14 +4038,14 @@ declare namespace SourceCode {
|
|
|
6373
4038
|
visitorKeys: VisitorKeys | null;
|
|
6374
4039
|
}
|
|
6375
4040
|
type VisitorKeys = Parser.VisitorKeys;
|
|
6376
|
-
type FilterPredicate = (token: Token
|
|
6377
|
-
type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token
|
|
4041
|
+
type FilterPredicate = (token: Token) => boolean;
|
|
4042
|
+
type GetFilterPredicate<Filter, Default> = Filter extends ((token: Token) => token is infer U extends Token) ? U : Default;
|
|
6378
4043
|
type GetFilterPredicateFromOptions<Options, Default> = Options extends {
|
|
6379
4044
|
filter?: FilterPredicate;
|
|
6380
4045
|
} ? GetFilterPredicate<Options['filter'], Default> : GetFilterPredicate<Options, Default>;
|
|
6381
4046
|
type ReturnTypeFromOptions<T> = T extends {
|
|
6382
4047
|
includeComments: true;
|
|
6383
|
-
} ? GetFilterPredicateFromOptions<T, Token
|
|
4048
|
+
} ? GetFilterPredicateFromOptions<T, Token> : GetFilterPredicateFromOptions<T, Exclude<Token, Comment>>;
|
|
6384
4049
|
type CursorWithSkipOptions = number | FilterPredicate | {
|
|
6385
4050
|
/**
|
|
6386
4051
|
* The predicate function to choose tokens.
|
|
@@ -6536,13 +4201,13 @@ interface RuleFix {
|
|
|
6536
4201
|
text: string;
|
|
6537
4202
|
}
|
|
6538
4203
|
interface RuleFixer {
|
|
6539
|
-
insertTextAfter(nodeOrToken: Node
|
|
4204
|
+
insertTextAfter(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6540
4205
|
insertTextAfterRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
6541
|
-
insertTextBefore(nodeOrToken: Node
|
|
4206
|
+
insertTextBefore(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6542
4207
|
insertTextBeforeRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
6543
|
-
remove(nodeOrToken: Node
|
|
4208
|
+
remove(nodeOrToken: Node | Token): RuleFix;
|
|
6544
4209
|
removeRange(range: Readonly<AST.Range>): RuleFix;
|
|
6545
|
-
replaceText(nodeOrToken: Node
|
|
4210
|
+
replaceText(nodeOrToken: Node | Token, text: string): RuleFix;
|
|
6546
4211
|
replaceTextRange(range: Readonly<AST.Range>, text: string): RuleFix;
|
|
6547
4212
|
}
|
|
6548
4213
|
interface SuggestionReportDescriptor<MessageIds extends string> extends Omit<ReportDescriptorBase<MessageIds>, 'fix'> {
|
|
@@ -6575,17 +4240,17 @@ interface ReportDescriptorNodeOptionalLoc {
|
|
|
6575
4240
|
/**
|
|
6576
4241
|
* An override of the location of the report
|
|
6577
4242
|
*/
|
|
6578
|
-
readonly loc?: Readonly<Position
|
|
4243
|
+
readonly loc?: Readonly<Position> | Readonly<SourceLocation>;
|
|
6579
4244
|
/**
|
|
6580
4245
|
* The Node or AST Token which the report is being attached to
|
|
6581
4246
|
*/
|
|
6582
|
-
readonly node: Node
|
|
4247
|
+
readonly node: Node | Token;
|
|
6583
4248
|
}
|
|
6584
4249
|
interface ReportDescriptorLocOnly {
|
|
6585
4250
|
/**
|
|
6586
4251
|
* An override of the location of the report
|
|
6587
4252
|
*/
|
|
6588
|
-
loc: Readonly<Position
|
|
4253
|
+
loc: Readonly<Position> | Readonly<SourceLocation>;
|
|
6589
4254
|
}
|
|
6590
4255
|
type ReportDescriptor<MessageIds extends string> = (ReportDescriptorLocOnly | ReportDescriptorNodeOptionalLoc) & ReportDescriptorWithSuggestion<MessageIds>;
|
|
6591
4256
|
/**
|
|
@@ -6603,7 +4268,9 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
6603
4268
|
/**
|
|
6604
4269
|
* The language options configured for this run
|
|
6605
4270
|
*/
|
|
6606
|
-
languageOptions: FlatConfig.LanguageOptions
|
|
4271
|
+
languageOptions: FlatConfig.LanguageOptions & {
|
|
4272
|
+
parserOptions: FlatConfig.ParserOptions;
|
|
4273
|
+
};
|
|
6607
4274
|
/**
|
|
6608
4275
|
* An array of the configured options for this rule.
|
|
6609
4276
|
* This array does not include the rule severity.
|
|
@@ -6611,10 +4278,12 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
6611
4278
|
options: Options;
|
|
6612
4279
|
/**
|
|
6613
4280
|
* The parser options configured for this run
|
|
4281
|
+
* @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
|
|
6614
4282
|
*/
|
|
6615
4283
|
parserOptions: Linter.ParserOptions;
|
|
6616
4284
|
/**
|
|
6617
4285
|
* The name of the parser from configuration, if in eslintrc (legacy) config.
|
|
4286
|
+
* @deprecated This was deprecated in ESLint 9 and removed in ESLint 10.
|
|
6618
4287
|
*/
|
|
6619
4288
|
parserPath: string | undefined;
|
|
6620
4289
|
/**
|
|
@@ -6635,14 +4304,14 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
6635
4304
|
*
|
|
6636
4305
|
* @deprecated in favor of `SourceCode#getAncestors`
|
|
6637
4306
|
*/
|
|
6638
|
-
getAncestors(): Node
|
|
4307
|
+
getAncestors(): Node[];
|
|
6639
4308
|
/**
|
|
6640
4309
|
* Returns a list of variables declared by the given node.
|
|
6641
4310
|
* This information can be used to track references to variables.
|
|
6642
4311
|
*
|
|
6643
4312
|
* @deprecated in favor of `SourceCode#getDeclaredVariables`
|
|
6644
4313
|
*/
|
|
6645
|
-
getDeclaredVariables(node: Node
|
|
4314
|
+
getDeclaredVariables(node: Node): readonly Scope.Variable[];
|
|
6646
4315
|
/**
|
|
6647
4316
|
* Returns the current working directory passed to Linter.
|
|
6648
4317
|
* It is a path to a directory that should be considered as the current working directory.
|
|
@@ -6704,176 +4373,176 @@ interface RuleContext<MessageIds extends string, Options extends readonly unknow
|
|
|
6704
4373
|
*/
|
|
6705
4374
|
report(descriptor: ReportDescriptor<MessageIds>): void;
|
|
6706
4375
|
}
|
|
6707
|
-
type RuleFunction<T extends NodeOrTokenData
|
|
4376
|
+
type RuleFunction<T extends NodeOrTokenData = never> = (node: T) => void;
|
|
6708
4377
|
interface RuleListenerBaseSelectors {
|
|
6709
|
-
AccessorProperty?: RuleFunction<AccessorProperty
|
|
6710
|
-
ArrayExpression?: RuleFunction<ArrayExpression
|
|
6711
|
-
ArrayPattern?: RuleFunction<ArrayPattern
|
|
6712
|
-
ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression
|
|
6713
|
-
AssignmentExpression?: RuleFunction<AssignmentExpression
|
|
6714
|
-
AssignmentPattern?: RuleFunction<AssignmentPattern
|
|
6715
|
-
AwaitExpression?: RuleFunction<AwaitExpression
|
|
6716
|
-
BinaryExpression?: RuleFunction<BinaryExpression
|
|
6717
|
-
BlockStatement?: RuleFunction<BlockStatement
|
|
6718
|
-
BreakStatement?: RuleFunction<BreakStatement
|
|
6719
|
-
CallExpression?: RuleFunction<CallExpression
|
|
6720
|
-
CatchClause?: RuleFunction<CatchClause
|
|
6721
|
-
ChainExpression?: RuleFunction<ChainExpression
|
|
6722
|
-
ClassBody?: RuleFunction<ClassBody
|
|
6723
|
-
ClassDeclaration?: RuleFunction<ClassDeclaration
|
|
6724
|
-
ClassExpression?: RuleFunction<ClassExpression
|
|
6725
|
-
ConditionalExpression?: RuleFunction<ConditionalExpression
|
|
6726
|
-
ContinueStatement?: RuleFunction<ContinueStatement
|
|
6727
|
-
DebuggerStatement?: RuleFunction<DebuggerStatement
|
|
6728
|
-
Decorator?: RuleFunction<Decorator
|
|
6729
|
-
DoWhileStatement?: RuleFunction<DoWhileStatement
|
|
6730
|
-
EmptyStatement?: RuleFunction<EmptyStatement
|
|
6731
|
-
ExportAllDeclaration?: RuleFunction<ExportAllDeclaration
|
|
6732
|
-
ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration
|
|
6733
|
-
ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration
|
|
6734
|
-
ExportSpecifier?: RuleFunction<ExportSpecifier
|
|
6735
|
-
ExpressionStatement?: RuleFunction<ExpressionStatement
|
|
6736
|
-
ForInStatement?: RuleFunction<ForInStatement
|
|
6737
|
-
ForOfStatement?: RuleFunction<ForOfStatement
|
|
6738
|
-
ForStatement?: RuleFunction<ForStatement
|
|
6739
|
-
FunctionDeclaration?: RuleFunction<FunctionDeclaration
|
|
6740
|
-
FunctionExpression?: RuleFunction<FunctionExpression
|
|
6741
|
-
Identifier?: RuleFunction<Identifier
|
|
6742
|
-
IfStatement?: RuleFunction<IfStatement
|
|
6743
|
-
ImportAttribute?: RuleFunction<ImportAttribute
|
|
6744
|
-
ImportDeclaration?: RuleFunction<ImportDeclaration
|
|
6745
|
-
ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier
|
|
6746
|
-
ImportExpression?: RuleFunction<ImportExpression
|
|
6747
|
-
ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier
|
|
6748
|
-
ImportSpecifier?: RuleFunction<ImportSpecifier
|
|
6749
|
-
JSXAttribute?: RuleFunction<JSXAttribute
|
|
6750
|
-
JSXClosingElement?: RuleFunction<JSXClosingElement
|
|
6751
|
-
JSXClosingFragment?: RuleFunction<JSXClosingFragment
|
|
6752
|
-
JSXElement?: RuleFunction<JSXElement
|
|
6753
|
-
JSXEmptyExpression?: RuleFunction<JSXEmptyExpression
|
|
6754
|
-
JSXExpressionContainer?: RuleFunction<JSXExpressionContainer
|
|
6755
|
-
JSXFragment?: RuleFunction<JSXFragment
|
|
6756
|
-
JSXIdentifier?: RuleFunction<JSXIdentifier
|
|
6757
|
-
JSXMemberExpression?: RuleFunction<JSXMemberExpression
|
|
6758
|
-
JSXNamespacedName?: RuleFunction<JSXNamespacedName
|
|
6759
|
-
JSXOpeningElement?: RuleFunction<JSXOpeningElement
|
|
6760
|
-
JSXOpeningFragment?: RuleFunction<JSXOpeningFragment
|
|
6761
|
-
JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute
|
|
6762
|
-
JSXSpreadChild?: RuleFunction<JSXSpreadChild
|
|
6763
|
-
JSXText?: RuleFunction<JSXText
|
|
6764
|
-
LabeledStatement?: RuleFunction<LabeledStatement
|
|
6765
|
-
Literal?: RuleFunction<Literal
|
|
6766
|
-
LogicalExpression?: RuleFunction<LogicalExpression
|
|
6767
|
-
MemberExpression?: RuleFunction<MemberExpression
|
|
6768
|
-
MetaProperty?: RuleFunction<MetaProperty
|
|
6769
|
-
MethodDefinition?: RuleFunction<MethodDefinition
|
|
6770
|
-
NewExpression?: RuleFunction<NewExpression
|
|
6771
|
-
ObjectExpression?: RuleFunction<ObjectExpression
|
|
6772
|
-
ObjectPattern?: RuleFunction<ObjectPattern
|
|
6773
|
-
PrivateIdentifier?: RuleFunction<PrivateIdentifier
|
|
6774
|
-
Program?: RuleFunction<Program
|
|
6775
|
-
Property?: RuleFunction<Property
|
|
6776
|
-
PropertyDefinition?: RuleFunction<PropertyDefinition
|
|
6777
|
-
RestElement?: RuleFunction<RestElement
|
|
6778
|
-
ReturnStatement?: RuleFunction<ReturnStatement
|
|
6779
|
-
SequenceExpression?: RuleFunction<SequenceExpression
|
|
6780
|
-
SpreadElement?: RuleFunction<SpreadElement
|
|
6781
|
-
StaticBlock?: RuleFunction<StaticBlock
|
|
6782
|
-
Super?: RuleFunction<Super
|
|
6783
|
-
SwitchCase?: RuleFunction<SwitchCase
|
|
6784
|
-
SwitchStatement?: RuleFunction<SwitchStatement
|
|
6785
|
-
TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression
|
|
6786
|
-
TemplateElement?: RuleFunction<TemplateElement
|
|
6787
|
-
TemplateLiteral?: RuleFunction<TemplateLiteral
|
|
6788
|
-
ThisExpression?: RuleFunction<ThisExpression
|
|
6789
|
-
ThrowStatement?: RuleFunction<ThrowStatement
|
|
6790
|
-
TryStatement?: RuleFunction<TryStatement
|
|
6791
|
-
TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty
|
|
6792
|
-
TSAbstractKeyword?: RuleFunction<TSAbstractKeyword
|
|
6793
|
-
TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition
|
|
6794
|
-
TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition
|
|
6795
|
-
TSAnyKeyword?: RuleFunction<TSAnyKeyword
|
|
6796
|
-
TSArrayType?: RuleFunction<TSArrayType
|
|
6797
|
-
TSAsExpression?: RuleFunction<TSAsExpression
|
|
6798
|
-
TSAsyncKeyword?: RuleFunction<TSAsyncKeyword
|
|
6799
|
-
TSBigIntKeyword?: RuleFunction<TSBigIntKeyword
|
|
6800
|
-
TSBooleanKeyword?: RuleFunction<TSBooleanKeyword
|
|
6801
|
-
TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration
|
|
6802
|
-
TSClassImplements?: RuleFunction<TSClassImplements
|
|
6803
|
-
TSConditionalType?: RuleFunction<TSConditionalType
|
|
6804
|
-
TSConstructorType?: RuleFunction<TSConstructorType
|
|
6805
|
-
TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration
|
|
6806
|
-
TSDeclareFunction?: RuleFunction<TSDeclareFunction
|
|
6807
|
-
TSDeclareKeyword?: RuleFunction<TSDeclareKeyword
|
|
6808
|
-
TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression
|
|
6809
|
-
TSEnumBody?: RuleFunction<TSEnumBody
|
|
6810
|
-
TSEnumDeclaration?: RuleFunction<TSEnumDeclaration
|
|
6811
|
-
TSEnumMember?: RuleFunction<TSEnumMember
|
|
6812
|
-
TSExportAssignment?: RuleFunction<TSExportAssignment
|
|
6813
|
-
TSExportKeyword?: RuleFunction<TSExportKeyword
|
|
6814
|
-
TSExternalModuleReference?: RuleFunction<TSExternalModuleReference
|
|
6815
|
-
TSFunctionType?: RuleFunction<TSFunctionType
|
|
6816
|
-
TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration
|
|
6817
|
-
TSImportType?: RuleFunction<TSImportType
|
|
6818
|
-
TSIndexedAccessType?: RuleFunction<TSIndexedAccessType
|
|
6819
|
-
TSIndexSignature?: RuleFunction<TSIndexSignature
|
|
6820
|
-
TSInferType?: RuleFunction<TSInferType
|
|
6821
|
-
TSInstantiationExpression?: RuleFunction<TSInstantiationExpression
|
|
6822
|
-
TSInterfaceBody?: RuleFunction<TSInterfaceBody
|
|
6823
|
-
TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration
|
|
6824
|
-
TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage
|
|
6825
|
-
TSIntersectionType?: RuleFunction<TSIntersectionType
|
|
6826
|
-
TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword
|
|
6827
|
-
TSLiteralType?: RuleFunction<TSLiteralType
|
|
6828
|
-
TSMappedType?: RuleFunction<TSMappedType
|
|
6829
|
-
TSMethodSignature?: RuleFunction<TSMethodSignature
|
|
6830
|
-
TSModuleBlock?: RuleFunction<TSModuleBlock
|
|
6831
|
-
TSModuleDeclaration?: RuleFunction<TSModuleDeclaration
|
|
6832
|
-
TSNamedTupleMember?: RuleFunction<TSNamedTupleMember
|
|
6833
|
-
TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration
|
|
6834
|
-
TSNeverKeyword?: RuleFunction<TSNeverKeyword
|
|
6835
|
-
TSNonNullExpression?: RuleFunction<TSNonNullExpression
|
|
6836
|
-
TSNullKeyword?: RuleFunction<TSNullKeyword
|
|
6837
|
-
TSNumberKeyword?: RuleFunction<TSNumberKeyword
|
|
6838
|
-
TSObjectKeyword?: RuleFunction<TSObjectKeyword
|
|
6839
|
-
TSOptionalType?: RuleFunction<TSOptionalType
|
|
6840
|
-
TSParameterProperty?: RuleFunction<TSParameterProperty
|
|
6841
|
-
TSPrivateKeyword?: RuleFunction<TSPrivateKeyword
|
|
6842
|
-
TSPropertySignature?: RuleFunction<TSPropertySignature
|
|
6843
|
-
TSProtectedKeyword?: RuleFunction<TSProtectedKeyword
|
|
6844
|
-
TSPublicKeyword?: RuleFunction<TSPublicKeyword
|
|
6845
|
-
TSQualifiedName?: RuleFunction<TSQualifiedName
|
|
6846
|
-
TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword
|
|
6847
|
-
TSRestType?: RuleFunction<TSRestType
|
|
6848
|
-
TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression
|
|
6849
|
-
TSStaticKeyword?: RuleFunction<TSStaticKeyword
|
|
6850
|
-
TSStringKeyword?: RuleFunction<TSStringKeyword
|
|
6851
|
-
TSSymbolKeyword?: RuleFunction<TSSymbolKeyword
|
|
6852
|
-
TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType
|
|
6853
|
-
TSThisType?: RuleFunction<TSThisType
|
|
6854
|
-
TSTupleType?: RuleFunction<TSTupleType
|
|
6855
|
-
TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration
|
|
6856
|
-
TSTypeAnnotation?: RuleFunction<TSTypeAnnotation
|
|
6857
|
-
TSTypeAssertion?: RuleFunction<TSTypeAssertion
|
|
6858
|
-
TSTypeLiteral?: RuleFunction<TSTypeLiteral
|
|
6859
|
-
TSTypeOperator?: RuleFunction<TSTypeOperator
|
|
6860
|
-
TSTypeParameter?: RuleFunction<TSTypeParameter
|
|
6861
|
-
TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration
|
|
6862
|
-
TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation
|
|
6863
|
-
TSTypePredicate?: RuleFunction<TSTypePredicate
|
|
6864
|
-
TSTypeQuery?: RuleFunction<TSTypeQuery
|
|
6865
|
-
TSTypeReference?: RuleFunction<TSTypeReference
|
|
6866
|
-
TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword
|
|
6867
|
-
TSUnionType?: RuleFunction<TSUnionType
|
|
6868
|
-
TSUnknownKeyword?: RuleFunction<TSUnknownKeyword
|
|
6869
|
-
TSVoidKeyword?: RuleFunction<TSVoidKeyword
|
|
6870
|
-
UnaryExpression?: RuleFunction<UnaryExpression
|
|
6871
|
-
UpdateExpression?: RuleFunction<UpdateExpression
|
|
6872
|
-
VariableDeclaration?: RuleFunction<VariableDeclaration
|
|
6873
|
-
VariableDeclarator?: RuleFunction<VariableDeclarator
|
|
6874
|
-
WhileStatement?: RuleFunction<WhileStatement
|
|
6875
|
-
WithStatement?: RuleFunction<WithStatement
|
|
6876
|
-
YieldExpression?: RuleFunction<YieldExpression
|
|
4378
|
+
AccessorProperty?: RuleFunction<AccessorProperty>;
|
|
4379
|
+
ArrayExpression?: RuleFunction<ArrayExpression>;
|
|
4380
|
+
ArrayPattern?: RuleFunction<ArrayPattern>;
|
|
4381
|
+
ArrowFunctionExpression?: RuleFunction<ArrowFunctionExpression>;
|
|
4382
|
+
AssignmentExpression?: RuleFunction<AssignmentExpression>;
|
|
4383
|
+
AssignmentPattern?: RuleFunction<AssignmentPattern>;
|
|
4384
|
+
AwaitExpression?: RuleFunction<AwaitExpression>;
|
|
4385
|
+
BinaryExpression?: RuleFunction<BinaryExpression>;
|
|
4386
|
+
BlockStatement?: RuleFunction<BlockStatement>;
|
|
4387
|
+
BreakStatement?: RuleFunction<BreakStatement>;
|
|
4388
|
+
CallExpression?: RuleFunction<CallExpression>;
|
|
4389
|
+
CatchClause?: RuleFunction<CatchClause>;
|
|
4390
|
+
ChainExpression?: RuleFunction<ChainExpression>;
|
|
4391
|
+
ClassBody?: RuleFunction<ClassBody>;
|
|
4392
|
+
ClassDeclaration?: RuleFunction<ClassDeclaration>;
|
|
4393
|
+
ClassExpression?: RuleFunction<ClassExpression>;
|
|
4394
|
+
ConditionalExpression?: RuleFunction<ConditionalExpression>;
|
|
4395
|
+
ContinueStatement?: RuleFunction<ContinueStatement>;
|
|
4396
|
+
DebuggerStatement?: RuleFunction<DebuggerStatement>;
|
|
4397
|
+
Decorator?: RuleFunction<Decorator>;
|
|
4398
|
+
DoWhileStatement?: RuleFunction<DoWhileStatement>;
|
|
4399
|
+
EmptyStatement?: RuleFunction<EmptyStatement>;
|
|
4400
|
+
ExportAllDeclaration?: RuleFunction<ExportAllDeclaration>;
|
|
4401
|
+
ExportDefaultDeclaration?: RuleFunction<ExportDefaultDeclaration>;
|
|
4402
|
+
ExportNamedDeclaration?: RuleFunction<ExportNamedDeclaration>;
|
|
4403
|
+
ExportSpecifier?: RuleFunction<ExportSpecifier>;
|
|
4404
|
+
ExpressionStatement?: RuleFunction<ExpressionStatement>;
|
|
4405
|
+
ForInStatement?: RuleFunction<ForInStatement>;
|
|
4406
|
+
ForOfStatement?: RuleFunction<ForOfStatement>;
|
|
4407
|
+
ForStatement?: RuleFunction<ForStatement>;
|
|
4408
|
+
FunctionDeclaration?: RuleFunction<FunctionDeclaration>;
|
|
4409
|
+
FunctionExpression?: RuleFunction<FunctionExpression>;
|
|
4410
|
+
Identifier?: RuleFunction<Identifier>;
|
|
4411
|
+
IfStatement?: RuleFunction<IfStatement>;
|
|
4412
|
+
ImportAttribute?: RuleFunction<ImportAttribute>;
|
|
4413
|
+
ImportDeclaration?: RuleFunction<ImportDeclaration>;
|
|
4414
|
+
ImportDefaultSpecifier?: RuleFunction<ImportDefaultSpecifier>;
|
|
4415
|
+
ImportExpression?: RuleFunction<ImportExpression>;
|
|
4416
|
+
ImportNamespaceSpecifier?: RuleFunction<ImportNamespaceSpecifier>;
|
|
4417
|
+
ImportSpecifier?: RuleFunction<ImportSpecifier>;
|
|
4418
|
+
JSXAttribute?: RuleFunction<JSXAttribute>;
|
|
4419
|
+
JSXClosingElement?: RuleFunction<JSXClosingElement>;
|
|
4420
|
+
JSXClosingFragment?: RuleFunction<JSXClosingFragment>;
|
|
4421
|
+
JSXElement?: RuleFunction<JSXElement>;
|
|
4422
|
+
JSXEmptyExpression?: RuleFunction<JSXEmptyExpression>;
|
|
4423
|
+
JSXExpressionContainer?: RuleFunction<JSXExpressionContainer>;
|
|
4424
|
+
JSXFragment?: RuleFunction<JSXFragment>;
|
|
4425
|
+
JSXIdentifier?: RuleFunction<JSXIdentifier>;
|
|
4426
|
+
JSXMemberExpression?: RuleFunction<JSXMemberExpression>;
|
|
4427
|
+
JSXNamespacedName?: RuleFunction<JSXNamespacedName>;
|
|
4428
|
+
JSXOpeningElement?: RuleFunction<JSXOpeningElement>;
|
|
4429
|
+
JSXOpeningFragment?: RuleFunction<JSXOpeningFragment>;
|
|
4430
|
+
JSXSpreadAttribute?: RuleFunction<JSXSpreadAttribute>;
|
|
4431
|
+
JSXSpreadChild?: RuleFunction<JSXSpreadChild>;
|
|
4432
|
+
JSXText?: RuleFunction<JSXText>;
|
|
4433
|
+
LabeledStatement?: RuleFunction<LabeledStatement>;
|
|
4434
|
+
Literal?: RuleFunction<Literal>;
|
|
4435
|
+
LogicalExpression?: RuleFunction<LogicalExpression>;
|
|
4436
|
+
MemberExpression?: RuleFunction<MemberExpression>;
|
|
4437
|
+
MetaProperty?: RuleFunction<MetaProperty>;
|
|
4438
|
+
MethodDefinition?: RuleFunction<MethodDefinition>;
|
|
4439
|
+
NewExpression?: RuleFunction<NewExpression>;
|
|
4440
|
+
ObjectExpression?: RuleFunction<ObjectExpression>;
|
|
4441
|
+
ObjectPattern?: RuleFunction<ObjectPattern>;
|
|
4442
|
+
PrivateIdentifier?: RuleFunction<PrivateIdentifier>;
|
|
4443
|
+
Program?: RuleFunction<Program>;
|
|
4444
|
+
Property?: RuleFunction<Property>;
|
|
4445
|
+
PropertyDefinition?: RuleFunction<PropertyDefinition>;
|
|
4446
|
+
RestElement?: RuleFunction<RestElement>;
|
|
4447
|
+
ReturnStatement?: RuleFunction<ReturnStatement>;
|
|
4448
|
+
SequenceExpression?: RuleFunction<SequenceExpression>;
|
|
4449
|
+
SpreadElement?: RuleFunction<SpreadElement>;
|
|
4450
|
+
StaticBlock?: RuleFunction<StaticBlock>;
|
|
4451
|
+
Super?: RuleFunction<Super>;
|
|
4452
|
+
SwitchCase?: RuleFunction<SwitchCase>;
|
|
4453
|
+
SwitchStatement?: RuleFunction<SwitchStatement>;
|
|
4454
|
+
TaggedTemplateExpression?: RuleFunction<TaggedTemplateExpression>;
|
|
4455
|
+
TemplateElement?: RuleFunction<TemplateElement>;
|
|
4456
|
+
TemplateLiteral?: RuleFunction<TemplateLiteral>;
|
|
4457
|
+
ThisExpression?: RuleFunction<ThisExpression>;
|
|
4458
|
+
ThrowStatement?: RuleFunction<ThrowStatement>;
|
|
4459
|
+
TryStatement?: RuleFunction<TryStatement>;
|
|
4460
|
+
TSAbstractAccessorProperty?: RuleFunction<TSAbstractAccessorProperty>;
|
|
4461
|
+
TSAbstractKeyword?: RuleFunction<TSAbstractKeyword>;
|
|
4462
|
+
TSAbstractMethodDefinition?: RuleFunction<TSAbstractMethodDefinition>;
|
|
4463
|
+
TSAbstractPropertyDefinition?: RuleFunction<TSAbstractPropertyDefinition>;
|
|
4464
|
+
TSAnyKeyword?: RuleFunction<TSAnyKeyword>;
|
|
4465
|
+
TSArrayType?: RuleFunction<TSArrayType>;
|
|
4466
|
+
TSAsExpression?: RuleFunction<TSAsExpression>;
|
|
4467
|
+
TSAsyncKeyword?: RuleFunction<TSAsyncKeyword>;
|
|
4468
|
+
TSBigIntKeyword?: RuleFunction<TSBigIntKeyword>;
|
|
4469
|
+
TSBooleanKeyword?: RuleFunction<TSBooleanKeyword>;
|
|
4470
|
+
TSCallSignatureDeclaration?: RuleFunction<TSCallSignatureDeclaration>;
|
|
4471
|
+
TSClassImplements?: RuleFunction<TSClassImplements>;
|
|
4472
|
+
TSConditionalType?: RuleFunction<TSConditionalType>;
|
|
4473
|
+
TSConstructorType?: RuleFunction<TSConstructorType>;
|
|
4474
|
+
TSConstructSignatureDeclaration?: RuleFunction<TSConstructSignatureDeclaration>;
|
|
4475
|
+
TSDeclareFunction?: RuleFunction<TSDeclareFunction>;
|
|
4476
|
+
TSDeclareKeyword?: RuleFunction<TSDeclareKeyword>;
|
|
4477
|
+
TSEmptyBodyFunctionExpression?: RuleFunction<TSEmptyBodyFunctionExpression>;
|
|
4478
|
+
TSEnumBody?: RuleFunction<TSEnumBody>;
|
|
4479
|
+
TSEnumDeclaration?: RuleFunction<TSEnumDeclaration>;
|
|
4480
|
+
TSEnumMember?: RuleFunction<TSEnumMember>;
|
|
4481
|
+
TSExportAssignment?: RuleFunction<TSExportAssignment>;
|
|
4482
|
+
TSExportKeyword?: RuleFunction<TSExportKeyword>;
|
|
4483
|
+
TSExternalModuleReference?: RuleFunction<TSExternalModuleReference>;
|
|
4484
|
+
TSFunctionType?: RuleFunction<TSFunctionType>;
|
|
4485
|
+
TSImportEqualsDeclaration?: RuleFunction<TSImportEqualsDeclaration>;
|
|
4486
|
+
TSImportType?: RuleFunction<TSImportType>;
|
|
4487
|
+
TSIndexedAccessType?: RuleFunction<TSIndexedAccessType>;
|
|
4488
|
+
TSIndexSignature?: RuleFunction<TSIndexSignature>;
|
|
4489
|
+
TSInferType?: RuleFunction<TSInferType>;
|
|
4490
|
+
TSInstantiationExpression?: RuleFunction<TSInstantiationExpression>;
|
|
4491
|
+
TSInterfaceBody?: RuleFunction<TSInterfaceBody>;
|
|
4492
|
+
TSInterfaceDeclaration?: RuleFunction<TSInterfaceDeclaration>;
|
|
4493
|
+
TSInterfaceHeritage?: RuleFunction<TSInterfaceHeritage>;
|
|
4494
|
+
TSIntersectionType?: RuleFunction<TSIntersectionType>;
|
|
4495
|
+
TSIntrinsicKeyword?: RuleFunction<TSIntrinsicKeyword>;
|
|
4496
|
+
TSLiteralType?: RuleFunction<TSLiteralType>;
|
|
4497
|
+
TSMappedType?: RuleFunction<TSMappedType>;
|
|
4498
|
+
TSMethodSignature?: RuleFunction<TSMethodSignature>;
|
|
4499
|
+
TSModuleBlock?: RuleFunction<TSModuleBlock>;
|
|
4500
|
+
TSModuleDeclaration?: RuleFunction<TSModuleDeclaration>;
|
|
4501
|
+
TSNamedTupleMember?: RuleFunction<TSNamedTupleMember>;
|
|
4502
|
+
TSNamespaceExportDeclaration?: RuleFunction<TSNamespaceExportDeclaration>;
|
|
4503
|
+
TSNeverKeyword?: RuleFunction<TSNeverKeyword>;
|
|
4504
|
+
TSNonNullExpression?: RuleFunction<TSNonNullExpression>;
|
|
4505
|
+
TSNullKeyword?: RuleFunction<TSNullKeyword>;
|
|
4506
|
+
TSNumberKeyword?: RuleFunction<TSNumberKeyword>;
|
|
4507
|
+
TSObjectKeyword?: RuleFunction<TSObjectKeyword>;
|
|
4508
|
+
TSOptionalType?: RuleFunction<TSOptionalType>;
|
|
4509
|
+
TSParameterProperty?: RuleFunction<TSParameterProperty>;
|
|
4510
|
+
TSPrivateKeyword?: RuleFunction<TSPrivateKeyword>;
|
|
4511
|
+
TSPropertySignature?: RuleFunction<TSPropertySignature>;
|
|
4512
|
+
TSProtectedKeyword?: RuleFunction<TSProtectedKeyword>;
|
|
4513
|
+
TSPublicKeyword?: RuleFunction<TSPublicKeyword>;
|
|
4514
|
+
TSQualifiedName?: RuleFunction<TSQualifiedName>;
|
|
4515
|
+
TSReadonlyKeyword?: RuleFunction<TSReadonlyKeyword>;
|
|
4516
|
+
TSRestType?: RuleFunction<TSRestType>;
|
|
4517
|
+
TSSatisfiesExpression?: RuleFunction<TSSatisfiesExpression>;
|
|
4518
|
+
TSStaticKeyword?: RuleFunction<TSStaticKeyword>;
|
|
4519
|
+
TSStringKeyword?: RuleFunction<TSStringKeyword>;
|
|
4520
|
+
TSSymbolKeyword?: RuleFunction<TSSymbolKeyword>;
|
|
4521
|
+
TSTemplateLiteralType?: RuleFunction<TSTemplateLiteralType>;
|
|
4522
|
+
TSThisType?: RuleFunction<TSThisType>;
|
|
4523
|
+
TSTupleType?: RuleFunction<TSTupleType>;
|
|
4524
|
+
TSTypeAliasDeclaration?: RuleFunction<TSTypeAliasDeclaration>;
|
|
4525
|
+
TSTypeAnnotation?: RuleFunction<TSTypeAnnotation>;
|
|
4526
|
+
TSTypeAssertion?: RuleFunction<TSTypeAssertion>;
|
|
4527
|
+
TSTypeLiteral?: RuleFunction<TSTypeLiteral>;
|
|
4528
|
+
TSTypeOperator?: RuleFunction<TSTypeOperator>;
|
|
4529
|
+
TSTypeParameter?: RuleFunction<TSTypeParameter>;
|
|
4530
|
+
TSTypeParameterDeclaration?: RuleFunction<TSTypeParameterDeclaration>;
|
|
4531
|
+
TSTypeParameterInstantiation?: RuleFunction<TSTypeParameterInstantiation>;
|
|
4532
|
+
TSTypePredicate?: RuleFunction<TSTypePredicate>;
|
|
4533
|
+
TSTypeQuery?: RuleFunction<TSTypeQuery>;
|
|
4534
|
+
TSTypeReference?: RuleFunction<TSTypeReference>;
|
|
4535
|
+
TSUndefinedKeyword?: RuleFunction<TSUndefinedKeyword>;
|
|
4536
|
+
TSUnionType?: RuleFunction<TSUnionType>;
|
|
4537
|
+
TSUnknownKeyword?: RuleFunction<TSUnknownKeyword>;
|
|
4538
|
+
TSVoidKeyword?: RuleFunction<TSVoidKeyword>;
|
|
4539
|
+
UnaryExpression?: RuleFunction<UnaryExpression>;
|
|
4540
|
+
UpdateExpression?: RuleFunction<UpdateExpression>;
|
|
4541
|
+
VariableDeclaration?: RuleFunction<VariableDeclaration>;
|
|
4542
|
+
VariableDeclarator?: RuleFunction<VariableDeclarator>;
|
|
4543
|
+
WhileStatement?: RuleFunction<WhileStatement>;
|
|
4544
|
+
WithStatement?: RuleFunction<WithStatement>;
|
|
4545
|
+
YieldExpression?: RuleFunction<YieldExpression>;
|
|
6877
4546
|
}
|
|
6878
4547
|
type RuleListenerExitSelectors = {
|
|
6879
4548
|
[K in keyof RuleListenerBaseSelectors as `${K}:exit`]: RuleListenerBaseSelectors[K];
|
|
@@ -7524,19 +5193,17 @@ declare namespace FlatConfig {
|
|
|
7524
5193
|
|
|
7525
5194
|
declare const _default: {
|
|
7526
5195
|
rules: {
|
|
7527
|
-
'ts-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
'
|
|
7533
|
-
'vue-i18n
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
'vue-
|
|
7537
|
-
'vue-
|
|
7538
|
-
'vue-template-format-props': eslint.Rule.RuleModule;
|
|
7539
|
-
'vue-template-remove-true-attributes': eslint.Rule.RuleModule;
|
|
5196
|
+
'ts-format-layout': RuleModule<"expectedBlankLine" | "expectedBlankLineBeforeComment" | "ternaryMultiline" | "ternarySingleLine" | "unexpectedBlankLine" | "unionMultiline" | "unionSingleLine", [({
|
|
5197
|
+
maxCharacters?: number;
|
|
5198
|
+
maxLineLength?: number;
|
|
5199
|
+
minItems?: number;
|
|
5200
|
+
} | undefined)?], unknown, RuleListener>;
|
|
5201
|
+
'ts-format-tests': RuleModule<"sortError", [], unknown, RuleListener>;
|
|
5202
|
+
'vue-format-i18n': RuleModule<"sortError" | "indentError" | "invalidJson" | "invalidLocale" | "missingLocale" | "missingTranslations" | "unusedString", [({
|
|
5203
|
+
locales?: string[];
|
|
5204
|
+
} | undefined)?], unknown, RuleListener>;
|
|
5205
|
+
'vue-format-script': RuleModule<"multilineComputed" | "untypedEmits", [], unknown, RuleListener>;
|
|
5206
|
+
'vue-format-template': RuleModule<"noPropsPrefix" | "removeTrueAttribute" | "useT", [], unknown, RuleListener>;
|
|
7540
5207
|
};
|
|
7541
5208
|
};
|
|
7542
5209
|
|