@typescript-eslint/utils 7.13.2-alpha.2 → 7.13.2-alpha.3

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.
Files changed (32) hide show
  1. package/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -1
  2. package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -1
  3. package/dist/ast-utils/eslint-utils/astUtilities.d.ts +9 -0
  4. package/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -1
  5. package/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
  6. package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +1 -1
  7. package/dist/ast-utils/helpers.d.ts +6 -1224
  8. package/dist/ast-utils/helpers.d.ts.map +1 -1
  9. package/dist/ast-utils/misc.js +2 -2
  10. package/dist/ast-utils/misc.js.map +1 -1
  11. package/dist/ast-utils/predicates.d.ts +40 -14
  12. package/dist/ast-utils/predicates.d.ts.map +1 -1
  13. package/dist/ast-utils/predicates.js +2 -2
  14. package/dist/ast-utils/predicates.js.map +1 -1
  15. package/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
  16. package/dist/eslint-utils/RuleCreator.js +1 -2
  17. package/dist/eslint-utils/RuleCreator.js.map +1 -1
  18. package/dist/eslint-utils/applyDefault.js +1 -2
  19. package/dist/eslint-utils/applyDefault.js.map +1 -1
  20. package/dist/eslint-utils/context.js +6 -7
  21. package/dist/eslint-utils/context.js.map +1 -1
  22. package/dist/eslint-utils/deepMerge.js +2 -3
  23. package/dist/eslint-utils/deepMerge.js.map +1 -1
  24. package/dist/eslint-utils/getParserServices.js +1 -2
  25. package/dist/eslint-utils/getParserServices.js.map +1 -1
  26. package/dist/eslint-utils/nullThrows.js +2 -2
  27. package/dist/eslint-utils/nullThrows.js.map +1 -1
  28. package/dist/eslint-utils/parserPathSeemsToBeTSESLint.js +1 -2
  29. package/dist/eslint-utils/parserPathSeemsToBeTSESLint.js.map +1 -1
  30. package/dist/ts-utils/isArray.js +1 -2
  31. package/dist/ts-utils/isArray.js.map +1 -1
  32. package/package.json +4 -4
@@ -1,1237 +1,19 @@
1
1
  import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree';
2
- export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Program, {
2
+ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
3
3
  type: NodeType;
4
- }> | Extract<TSESTree.AccessorPropertyComputedName, {
5
- type: NodeType;
6
- }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
7
- type: NodeType;
8
- }> | Extract<TSESTree.ArrayExpression, {
9
- type: NodeType;
10
- }> | Extract<TSESTree.ArrayPattern, {
11
- type: NodeType;
12
- }> | Extract<TSESTree.ArrowFunctionExpression, {
13
- type: NodeType;
14
- }> | Extract<TSESTree.AssignmentExpression, {
15
- type: NodeType;
16
- }> | Extract<TSESTree.AssignmentPattern, {
17
- type: NodeType;
18
- }> | Extract<TSESTree.AwaitExpression, {
19
- type: NodeType;
20
- }> | Extract<TSESTree.BinaryExpression, {
21
- type: NodeType;
22
- }> | Extract<TSESTree.BlockStatement, {
23
- type: NodeType;
24
- }> | Extract<TSESTree.BreakStatement, {
25
- type: NodeType;
26
- }> | Extract<TSESTree.CallExpression, {
27
- type: NodeType;
28
- }> | Extract<TSESTree.CatchClause, {
29
- type: NodeType;
30
- }> | Extract<TSESTree.ChainExpression, {
31
- type: NodeType;
32
- }> | Extract<TSESTree.ClassBody, {
33
- type: NodeType;
34
- }> | Extract<TSESTree.ClassDeclarationWithName, {
35
- type: NodeType;
36
- }> | Extract<TSESTree.ClassDeclarationWithOptionalName, {
37
- type: NodeType;
38
- }> | Extract<TSESTree.ClassExpression, {
39
- type: NodeType;
40
- }> | Extract<TSESTree.ConditionalExpression, {
41
- type: NodeType;
42
- }> | Extract<TSESTree.ContinueStatement, {
43
- type: NodeType;
44
- }> | Extract<TSESTree.DebuggerStatement, {
45
- type: NodeType;
46
- }> | Extract<TSESTree.Decorator, {
47
- type: NodeType;
48
- }> | Extract<TSESTree.DoWhileStatement, {
49
- type: NodeType;
50
- }> | Extract<TSESTree.EmptyStatement, {
51
- type: NodeType;
52
- }> | Extract<TSESTree.ExportAllDeclaration, {
53
- type: NodeType;
54
- }> | Extract<TSESTree.ExportDefaultDeclaration, {
55
- type: NodeType;
56
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithMultiple, {
57
- type: NodeType;
58
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithSingle, {
59
- type: NodeType;
60
- }> | Extract<TSESTree.ExportNamedDeclarationWithSource, {
61
- type: NodeType;
62
- }> | Extract<TSESTree.ExportSpecifier, {
63
- type: NodeType;
64
- }> | Extract<TSESTree.ExpressionStatement, {
65
- type: NodeType;
66
- }> | Extract<TSESTree.ForInStatement, {
67
- type: NodeType;
68
- }> | Extract<TSESTree.ForOfStatement, {
69
- type: NodeType;
70
- }> | Extract<TSESTree.ForStatement, {
71
- type: NodeType;
72
- }> | Extract<TSESTree.FunctionDeclarationWithName, {
73
- type: NodeType;
74
- }> | Extract<TSESTree.FunctionDeclarationWithOptionalName, {
75
- type: NodeType;
76
- }> | Extract<TSESTree.FunctionExpression, {
77
- type: NodeType;
78
- }> | Extract<TSESTree.Identifier, {
79
- type: NodeType;
80
- }> | Extract<TSESTree.IfStatement, {
81
- type: NodeType;
82
- }> | Extract<TSESTree.ImportAttribute, {
83
- type: NodeType;
84
- }> | Extract<TSESTree.ImportDeclaration, {
85
- type: NodeType;
86
- }> | Extract<TSESTree.ImportDefaultSpecifier, {
87
- type: NodeType;
88
- }> | Extract<TSESTree.ImportExpression, {
89
- type: NodeType;
90
- }> | Extract<TSESTree.ImportNamespaceSpecifier, {
91
- type: NodeType;
92
- }> | Extract<TSESTree.ImportSpecifier, {
93
- type: NodeType;
94
- }> | Extract<TSESTree.JSXAttribute, {
95
- type: NodeType;
96
- }> | Extract<TSESTree.JSXClosingElement, {
97
- type: NodeType;
98
- }> | Extract<TSESTree.JSXClosingFragment, {
99
- type: NodeType;
100
- }> | Extract<TSESTree.JSXElement, {
101
- type: NodeType;
102
- }> | Extract<TSESTree.JSXEmptyExpression, {
103
- type: NodeType;
104
- }> | Extract<TSESTree.JSXExpressionContainer, {
105
- type: NodeType;
106
- }> | Extract<TSESTree.JSXFragment, {
107
- type: NodeType;
108
- }> | Extract<TSESTree.JSXIdentifier, {
109
- type: NodeType;
110
- }> | Extract<TSESTree.JSXMemberExpression, {
111
- type: NodeType;
112
- }> | Extract<TSESTree.JSXNamespacedName, {
113
- type: NodeType;
114
- }> | Extract<TSESTree.JSXOpeningElement, {
115
- type: NodeType;
116
- }> | Extract<TSESTree.JSXOpeningFragment, {
117
- type: NodeType;
118
- }> | Extract<TSESTree.JSXSpreadAttribute, {
119
- type: NodeType;
120
- }> | Extract<TSESTree.JSXSpreadChild, {
121
- type: NodeType;
122
- }> | Extract<TSESTree.JSXText, {
123
- type: NodeType;
124
- }> | Extract<TSESTree.LabeledStatement, {
125
- type: NodeType;
126
- }> | Extract<TSESTree.BigIntLiteral, {
127
- type: NodeType;
128
- }> | Extract<TSESTree.BooleanLiteral, {
129
- type: NodeType;
130
- }> | Extract<TSESTree.NullLiteral, {
131
- type: NodeType;
132
- }> | Extract<TSESTree.NumberLiteral, {
133
- type: NodeType;
134
- }> | Extract<TSESTree.RegExpLiteral, {
135
- type: NodeType;
136
- }> | Extract<TSESTree.StringLiteral, {
137
- type: NodeType;
138
- }> | Extract<TSESTree.LogicalExpression, {
139
- type: NodeType;
140
- }> | Extract<TSESTree.MemberExpressionComputedName, {
141
- type: NodeType;
142
- }> | Extract<TSESTree.MemberExpressionNonComputedName, {
143
- type: NodeType;
144
- }> | Extract<TSESTree.MetaProperty, {
145
- type: NodeType;
146
- }> | Extract<TSESTree.MethodDefinitionComputedName, {
147
- type: NodeType;
148
- }> | Extract<TSESTree.MethodDefinitionNonComputedName, {
149
- type: NodeType;
150
- }> | Extract<TSESTree.NewExpression, {
151
- type: NodeType;
152
- }> | Extract<TSESTree.ObjectExpression, {
153
- type: NodeType;
154
- }> | Extract<TSESTree.ObjectPattern, {
155
- type: NodeType;
156
- }> | Extract<TSESTree.PrivateIdentifier, {
157
- type: NodeType;
158
- }> | Extract<TSESTree.PropertyComputedName, {
159
- type: NodeType;
160
- }> | Extract<TSESTree.PropertyNonComputedName, {
161
- type: NodeType;
162
- }> | Extract<TSESTree.PropertyDefinitionComputedName, {
163
- type: NodeType;
164
- }> | Extract<TSESTree.PropertyDefinitionNonComputedName, {
165
- type: NodeType;
166
- }> | Extract<TSESTree.RestElement, {
167
- type: NodeType;
168
- }> | Extract<TSESTree.ReturnStatement, {
169
- type: NodeType;
170
- }> | Extract<TSESTree.SequenceExpression, {
171
- type: NodeType;
172
- }> | Extract<TSESTree.SpreadElement, {
173
- type: NodeType;
174
- }> | Extract<TSESTree.StaticBlock, {
175
- type: NodeType;
176
- }> | Extract<TSESTree.Super, {
177
- type: NodeType;
178
- }> | Extract<TSESTree.SwitchCase, {
179
- type: NodeType;
180
- }> | Extract<TSESTree.SwitchStatement, {
181
- type: NodeType;
182
- }> | Extract<TSESTree.TaggedTemplateExpression, {
183
- type: NodeType;
184
- }> | Extract<TSESTree.TemplateElement, {
185
- type: NodeType;
186
- }> | Extract<TSESTree.TemplateLiteral, {
187
- type: NodeType;
188
- }> | Extract<TSESTree.ThisExpression, {
189
- type: NodeType;
190
- }> | Extract<TSESTree.ThrowStatement, {
191
- type: NodeType;
192
- }> | Extract<TSESTree.TryStatement, {
193
- type: NodeType;
194
- }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
195
- type: NodeType;
196
- }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
197
- type: NodeType;
198
- }> | Extract<TSESTree.TSAbstractKeyword, {
199
- type: NodeType;
200
- }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
201
- type: NodeType;
202
- }> | Extract<TSESTree.TSAbstractMethodDefinitionNonComputedName, {
203
- type: NodeType;
204
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionComputedName, {
205
- type: NodeType;
206
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionNonComputedName, {
207
- type: NodeType;
208
- }> | Extract<TSESTree.TSAnyKeyword, {
209
- type: NodeType;
210
- }> | Extract<TSESTree.TSArrayType, {
211
- type: NodeType;
212
- }> | Extract<TSESTree.TSAsExpression, {
213
- type: NodeType;
214
- }> | Extract<TSESTree.TSAsyncKeyword, {
215
- type: NodeType;
216
- }> | Extract<TSESTree.TSBigIntKeyword, {
217
- type: NodeType;
218
- }> | Extract<TSESTree.TSBooleanKeyword, {
219
- type: NodeType;
220
- }> | Extract<TSESTree.TSCallSignatureDeclaration, {
221
- type: NodeType;
222
- }> | Extract<TSESTree.TSClassImplements, {
223
- type: NodeType;
224
- }> | Extract<TSESTree.TSConditionalType, {
225
- type: NodeType;
226
- }> | Extract<TSESTree.TSConstructorType, {
227
- type: NodeType;
228
- }> | Extract<TSESTree.TSConstructSignatureDeclaration, {
229
- type: NodeType;
230
- }> | Extract<TSESTree.TSDeclareFunctionNoDeclare, {
231
- type: NodeType;
232
- }> | Extract<TSESTree.TSDeclareFunctionWithDeclare, {
233
- type: NodeType;
234
- }> | Extract<TSESTree.TSDeclareKeyword, {
235
- type: NodeType;
236
- }> | Extract<TSESTree.TSEmptyBodyFunctionExpression, {
237
- type: NodeType;
238
- }> | Extract<TSESTree.TSEnumDeclaration, {
239
- type: NodeType;
240
- }> | Extract<TSESTree.TSEnumMemberComputedName, {
241
- type: NodeType;
242
- }> | Extract<TSESTree.TSEnumMemberNonComputedName, {
243
- type: NodeType;
244
- }> | Extract<TSESTree.TSExportAssignment, {
245
- type: NodeType;
246
- }> | Extract<TSESTree.TSExportKeyword, {
247
- type: NodeType;
248
- }> | Extract<TSESTree.TSExternalModuleReference, {
249
- type: NodeType;
250
- }> | Extract<TSESTree.TSFunctionType, {
251
- type: NodeType;
252
- }> | Extract<TSESTree.TSImportEqualsDeclaration, {
253
- type: NodeType;
254
- }> | Extract<TSESTree.TSImportType, {
255
- type: NodeType;
256
- }> | Extract<TSESTree.TSIndexedAccessType, {
257
- type: NodeType;
258
- }> | Extract<TSESTree.TSIndexSignature, {
259
- type: NodeType;
260
- }> | Extract<TSESTree.TSInferType, {
261
- type: NodeType;
262
- }> | Extract<TSESTree.TSInstantiationExpression, {
263
- type: NodeType;
264
- }> | Extract<TSESTree.TSInterfaceBody, {
265
- type: NodeType;
266
- }> | Extract<TSESTree.TSInterfaceDeclaration, {
267
- type: NodeType;
268
- }> | Extract<TSESTree.TSInterfaceHeritage, {
269
- type: NodeType;
270
- }> | Extract<TSESTree.TSIntersectionType, {
271
- type: NodeType;
272
- }> | Extract<TSESTree.TSIntrinsicKeyword, {
273
- type: NodeType;
274
- }> | Extract<TSESTree.TSLiteralType, {
275
- type: NodeType;
276
- }> | Extract<TSESTree.TSMappedType, {
277
- type: NodeType;
278
- }> | Extract<TSESTree.TSMethodSignatureComputedName, {
279
- type: NodeType;
280
- }> | Extract<TSESTree.TSMethodSignatureNonComputedName, {
281
- type: NodeType;
282
- }> | Extract<TSESTree.TSModuleBlock, {
283
- type: NodeType;
284
- }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
285
- type: NodeType;
286
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
287
- type: NodeType;
288
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
289
- type: NodeType;
290
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
291
- type: NodeType;
292
- }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
293
- type: NodeType;
294
- }> | Extract<TSESTree.TSNamedTupleMember, {
295
- type: NodeType;
296
- }> | Extract<TSESTree.TSNamespaceExportDeclaration, {
297
- type: NodeType;
298
- }> | Extract<TSESTree.TSNeverKeyword, {
299
- type: NodeType;
300
- }> | Extract<TSESTree.TSNonNullExpression, {
301
- type: NodeType;
302
- }> | Extract<TSESTree.TSNullKeyword, {
303
- type: NodeType;
304
- }> | Extract<TSESTree.TSNumberKeyword, {
305
- type: NodeType;
306
- }> | Extract<TSESTree.TSObjectKeyword, {
307
- type: NodeType;
308
- }> | Extract<TSESTree.TSOptionalType, {
309
- type: NodeType;
310
- }> | Extract<TSESTree.TSParameterProperty, {
311
- type: NodeType;
312
- }> | Extract<TSESTree.TSPrivateKeyword, {
313
- type: NodeType;
314
- }> | Extract<TSESTree.TSPropertySignatureComputedName, {
315
- type: NodeType;
316
- }> | Extract<TSESTree.TSPropertySignatureNonComputedName, {
317
- type: NodeType;
318
- }> | Extract<TSESTree.TSProtectedKeyword, {
319
- type: NodeType;
320
- }> | Extract<TSESTree.TSPublicKeyword, {
321
- type: NodeType;
322
- }> | Extract<TSESTree.TSQualifiedName, {
323
- type: NodeType;
324
- }> | Extract<TSESTree.TSReadonlyKeyword, {
325
- type: NodeType;
326
- }> | Extract<TSESTree.TSRestType, {
327
- type: NodeType;
328
- }> | Extract<TSESTree.TSSatisfiesExpression, {
329
- type: NodeType;
330
- }> | Extract<TSESTree.TSStaticKeyword, {
331
- type: NodeType;
332
- }> | Extract<TSESTree.TSStringKeyword, {
333
- type: NodeType;
334
- }> | Extract<TSESTree.TSSymbolKeyword, {
335
- type: NodeType;
336
- }> | Extract<TSESTree.TSTemplateLiteralType, {
337
- type: NodeType;
338
- }> | Extract<TSESTree.TSThisType, {
339
- type: NodeType;
340
- }> | Extract<TSESTree.TSTupleType, {
341
- type: NodeType;
342
- }> | Extract<TSESTree.TSTypeAliasDeclaration, {
343
- type: NodeType;
344
- }> | Extract<TSESTree.TSTypeAnnotation, {
345
- type: NodeType;
346
- }> | Extract<TSESTree.TSTypeAssertion, {
347
- type: NodeType;
348
- }> | Extract<TSESTree.TSTypeLiteral, {
349
- type: NodeType;
350
- }> | Extract<TSESTree.TSTypeOperator, {
351
- type: NodeType;
352
- }> | Extract<TSESTree.TSTypeParameter, {
353
- type: NodeType;
354
- }> | Extract<TSESTree.TSTypeParameterDeclaration, {
355
- type: NodeType;
356
- }> | Extract<TSESTree.TSTypeParameterInstantiation, {
357
- type: NodeType;
358
- }> | Extract<TSESTree.TSTypePredicate, {
359
- type: NodeType;
360
- }> | Extract<TSESTree.TSTypeQuery, {
361
- type: NodeType;
362
- }> | Extract<TSESTree.TSTypeReference, {
363
- type: NodeType;
364
- }> | Extract<TSESTree.TSUndefinedKeyword, {
365
- type: NodeType;
366
- }> | Extract<TSESTree.TSUnionType, {
367
- type: NodeType;
368
- }> | Extract<TSESTree.TSUnknownKeyword, {
369
- type: NodeType;
370
- }> | Extract<TSESTree.TSVoidKeyword, {
371
- type: NodeType;
372
- }> | Extract<TSESTree.UnaryExpression, {
373
- type: NodeType;
374
- }> | Extract<TSESTree.UpdateExpression, {
375
- type: NodeType;
376
- }> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
377
- type: NodeType;
378
- }> | Extract<TSESTree.UsingInForOfDeclaration, {
379
- type: NodeType;
380
- }> | Extract<TSESTree.UsingInNormalContextDeclaration, {
381
- type: NodeType;
382
- }> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
383
- type: NodeType;
384
- }> | Extract<TSESTree.UsingInForOfDeclarator, {
385
- type: NodeType;
386
- }> | Extract<TSESTree.UsingInNomalConextDeclarator, {
387
- type: NodeType;
388
- }> | Extract<TSESTree.WhileStatement, {
389
- type: NodeType;
390
- }> | Extract<TSESTree.WithStatement, {
391
- type: NodeType;
392
- }> | Extract<TSESTree.YieldExpression, {
393
- type: NodeType;
394
- }>;
395
- export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Program, {
396
- type: NodeTypes[number];
397
- }> | Extract<TSESTree.AccessorPropertyComputedName, {
398
- type: NodeTypes[number];
399
- }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
400
- type: NodeTypes[number];
401
- }> | Extract<TSESTree.ArrayExpression, {
402
- type: NodeTypes[number];
403
- }> | Extract<TSESTree.ArrayPattern, {
404
- type: NodeTypes[number];
405
- }> | Extract<TSESTree.ArrowFunctionExpression, {
406
- type: NodeTypes[number];
407
- }> | Extract<TSESTree.AssignmentExpression, {
408
- type: NodeTypes[number];
409
- }> | Extract<TSESTree.AssignmentPattern, {
410
- type: NodeTypes[number];
411
- }> | Extract<TSESTree.AwaitExpression, {
412
- type: NodeTypes[number];
413
- }> | Extract<TSESTree.BinaryExpression, {
414
- type: NodeTypes[number];
415
- }> | Extract<TSESTree.BlockStatement, {
416
- type: NodeTypes[number];
417
- }> | Extract<TSESTree.BreakStatement, {
418
- type: NodeTypes[number];
419
- }> | Extract<TSESTree.CallExpression, {
420
- type: NodeTypes[number];
421
- }> | Extract<TSESTree.CatchClause, {
422
- type: NodeTypes[number];
423
- }> | Extract<TSESTree.ChainExpression, {
424
- type: NodeTypes[number];
425
- }> | Extract<TSESTree.ClassBody, {
426
- type: NodeTypes[number];
427
- }> | Extract<TSESTree.ClassDeclarationWithName, {
428
- type: NodeTypes[number];
429
- }> | Extract<TSESTree.ClassDeclarationWithOptionalName, {
430
- type: NodeTypes[number];
431
- }> | Extract<TSESTree.ClassExpression, {
432
- type: NodeTypes[number];
433
- }> | Extract<TSESTree.ConditionalExpression, {
434
- type: NodeTypes[number];
435
- }> | Extract<TSESTree.ContinueStatement, {
436
- type: NodeTypes[number];
437
- }> | Extract<TSESTree.DebuggerStatement, {
438
- type: NodeTypes[number];
439
- }> | Extract<TSESTree.Decorator, {
440
- type: NodeTypes[number];
441
- }> | Extract<TSESTree.DoWhileStatement, {
442
- type: NodeTypes[number];
443
- }> | Extract<TSESTree.EmptyStatement, {
444
- type: NodeTypes[number];
445
- }> | Extract<TSESTree.ExportAllDeclaration, {
446
- type: NodeTypes[number];
447
- }> | Extract<TSESTree.ExportDefaultDeclaration, {
448
- type: NodeTypes[number];
449
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithMultiple, {
450
- type: NodeTypes[number];
451
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithSingle, {
452
- type: NodeTypes[number];
453
- }> | Extract<TSESTree.ExportNamedDeclarationWithSource, {
454
- type: NodeTypes[number];
455
- }> | Extract<TSESTree.ExportSpecifier, {
456
- type: NodeTypes[number];
457
- }> | Extract<TSESTree.ExpressionStatement, {
458
- type: NodeTypes[number];
459
- }> | Extract<TSESTree.ForInStatement, {
460
- type: NodeTypes[number];
461
- }> | Extract<TSESTree.ForOfStatement, {
462
- type: NodeTypes[number];
463
- }> | Extract<TSESTree.ForStatement, {
464
- type: NodeTypes[number];
465
- }> | Extract<TSESTree.FunctionDeclarationWithName, {
466
- type: NodeTypes[number];
467
- }> | Extract<TSESTree.FunctionDeclarationWithOptionalName, {
468
- type: NodeTypes[number];
469
- }> | Extract<TSESTree.FunctionExpression, {
470
- type: NodeTypes[number];
471
- }> | Extract<TSESTree.Identifier, {
472
- type: NodeTypes[number];
473
- }> | Extract<TSESTree.IfStatement, {
474
- type: NodeTypes[number];
475
- }> | Extract<TSESTree.ImportAttribute, {
476
- type: NodeTypes[number];
477
- }> | Extract<TSESTree.ImportDeclaration, {
478
- type: NodeTypes[number];
479
- }> | Extract<TSESTree.ImportDefaultSpecifier, {
480
- type: NodeTypes[number];
481
- }> | Extract<TSESTree.ImportExpression, {
482
- type: NodeTypes[number];
483
- }> | Extract<TSESTree.ImportNamespaceSpecifier, {
484
- type: NodeTypes[number];
485
- }> | Extract<TSESTree.ImportSpecifier, {
486
- type: NodeTypes[number];
487
- }> | Extract<TSESTree.JSXAttribute, {
488
- type: NodeTypes[number];
489
- }> | Extract<TSESTree.JSXClosingElement, {
490
- type: NodeTypes[number];
491
- }> | Extract<TSESTree.JSXClosingFragment, {
492
- type: NodeTypes[number];
493
- }> | Extract<TSESTree.JSXElement, {
494
- type: NodeTypes[number];
495
- }> | Extract<TSESTree.JSXEmptyExpression, {
496
- type: NodeTypes[number];
497
- }> | Extract<TSESTree.JSXExpressionContainer, {
498
- type: NodeTypes[number];
499
- }> | Extract<TSESTree.JSXFragment, {
500
- type: NodeTypes[number];
501
- }> | Extract<TSESTree.JSXIdentifier, {
502
- type: NodeTypes[number];
503
- }> | Extract<TSESTree.JSXMemberExpression, {
504
- type: NodeTypes[number];
505
- }> | Extract<TSESTree.JSXNamespacedName, {
506
- type: NodeTypes[number];
507
- }> | Extract<TSESTree.JSXOpeningElement, {
508
- type: NodeTypes[number];
509
- }> | Extract<TSESTree.JSXOpeningFragment, {
510
- type: NodeTypes[number];
511
- }> | Extract<TSESTree.JSXSpreadAttribute, {
512
- type: NodeTypes[number];
513
- }> | Extract<TSESTree.JSXSpreadChild, {
514
- type: NodeTypes[number];
515
- }> | Extract<TSESTree.JSXText, {
516
- type: NodeTypes[number];
517
- }> | Extract<TSESTree.LabeledStatement, {
518
- type: NodeTypes[number];
519
- }> | Extract<TSESTree.BigIntLiteral, {
520
- type: NodeTypes[number];
521
- }> | Extract<TSESTree.BooleanLiteral, {
522
- type: NodeTypes[number];
523
- }> | Extract<TSESTree.NullLiteral, {
524
- type: NodeTypes[number];
525
- }> | Extract<TSESTree.NumberLiteral, {
526
- type: NodeTypes[number];
527
- }> | Extract<TSESTree.RegExpLiteral, {
528
- type: NodeTypes[number];
529
- }> | Extract<TSESTree.StringLiteral, {
530
- type: NodeTypes[number];
531
- }> | Extract<TSESTree.LogicalExpression, {
532
- type: NodeTypes[number];
533
- }> | Extract<TSESTree.MemberExpressionComputedName, {
534
- type: NodeTypes[number];
535
- }> | Extract<TSESTree.MemberExpressionNonComputedName, {
536
- type: NodeTypes[number];
537
- }> | Extract<TSESTree.MetaProperty, {
538
- type: NodeTypes[number];
539
- }> | Extract<TSESTree.MethodDefinitionComputedName, {
540
- type: NodeTypes[number];
541
- }> | Extract<TSESTree.MethodDefinitionNonComputedName, {
542
- type: NodeTypes[number];
543
- }> | Extract<TSESTree.NewExpression, {
544
- type: NodeTypes[number];
545
- }> | Extract<TSESTree.ObjectExpression, {
546
- type: NodeTypes[number];
547
- }> | Extract<TSESTree.ObjectPattern, {
548
- type: NodeTypes[number];
549
- }> | Extract<TSESTree.PrivateIdentifier, {
550
- type: NodeTypes[number];
551
- }> | Extract<TSESTree.PropertyComputedName, {
552
- type: NodeTypes[number];
553
- }> | Extract<TSESTree.PropertyNonComputedName, {
554
- type: NodeTypes[number];
555
- }> | Extract<TSESTree.PropertyDefinitionComputedName, {
556
- type: NodeTypes[number];
557
- }> | Extract<TSESTree.PropertyDefinitionNonComputedName, {
558
- type: NodeTypes[number];
559
- }> | Extract<TSESTree.RestElement, {
560
- type: NodeTypes[number];
561
- }> | Extract<TSESTree.ReturnStatement, {
562
- type: NodeTypes[number];
563
- }> | Extract<TSESTree.SequenceExpression, {
564
- type: NodeTypes[number];
565
- }> | Extract<TSESTree.SpreadElement, {
566
- type: NodeTypes[number];
567
- }> | Extract<TSESTree.StaticBlock, {
568
- type: NodeTypes[number];
569
- }> | Extract<TSESTree.Super, {
570
- type: NodeTypes[number];
571
- }> | Extract<TSESTree.SwitchCase, {
572
- type: NodeTypes[number];
573
- }> | Extract<TSESTree.SwitchStatement, {
574
- type: NodeTypes[number];
575
- }> | Extract<TSESTree.TaggedTemplateExpression, {
576
- type: NodeTypes[number];
577
- }> | Extract<TSESTree.TemplateElement, {
578
- type: NodeTypes[number];
579
- }> | Extract<TSESTree.TemplateLiteral, {
580
- type: NodeTypes[number];
581
- }> | Extract<TSESTree.ThisExpression, {
582
- type: NodeTypes[number];
583
- }> | Extract<TSESTree.ThrowStatement, {
584
- type: NodeTypes[number];
585
- }> | Extract<TSESTree.TryStatement, {
586
- type: NodeTypes[number];
587
- }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
588
- type: NodeTypes[number];
589
- }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
590
- type: NodeTypes[number];
591
- }> | Extract<TSESTree.TSAbstractKeyword, {
592
- type: NodeTypes[number];
593
- }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
594
- type: NodeTypes[number];
595
- }> | Extract<TSESTree.TSAbstractMethodDefinitionNonComputedName, {
596
- type: NodeTypes[number];
597
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionComputedName, {
598
- type: NodeTypes[number];
599
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionNonComputedName, {
600
- type: NodeTypes[number];
601
- }> | Extract<TSESTree.TSAnyKeyword, {
602
- type: NodeTypes[number];
603
- }> | Extract<TSESTree.TSArrayType, {
604
- type: NodeTypes[number];
605
- }> | Extract<TSESTree.TSAsExpression, {
606
- type: NodeTypes[number];
607
- }> | Extract<TSESTree.TSAsyncKeyword, {
608
- type: NodeTypes[number];
609
- }> | Extract<TSESTree.TSBigIntKeyword, {
610
- type: NodeTypes[number];
611
- }> | Extract<TSESTree.TSBooleanKeyword, {
612
- type: NodeTypes[number];
613
- }> | Extract<TSESTree.TSCallSignatureDeclaration, {
614
- type: NodeTypes[number];
615
- }> | Extract<TSESTree.TSClassImplements, {
616
- type: NodeTypes[number];
617
- }> | Extract<TSESTree.TSConditionalType, {
618
- type: NodeTypes[number];
619
- }> | Extract<TSESTree.TSConstructorType, {
620
- type: NodeTypes[number];
621
- }> | Extract<TSESTree.TSConstructSignatureDeclaration, {
622
- type: NodeTypes[number];
623
- }> | Extract<TSESTree.TSDeclareFunctionNoDeclare, {
624
- type: NodeTypes[number];
625
- }> | Extract<TSESTree.TSDeclareFunctionWithDeclare, {
626
- type: NodeTypes[number];
627
- }> | Extract<TSESTree.TSDeclareKeyword, {
628
- type: NodeTypes[number];
629
- }> | Extract<TSESTree.TSEmptyBodyFunctionExpression, {
630
- type: NodeTypes[number];
631
- }> | Extract<TSESTree.TSEnumDeclaration, {
632
- type: NodeTypes[number];
633
- }> | Extract<TSESTree.TSEnumMemberComputedName, {
634
- type: NodeTypes[number];
635
- }> | Extract<TSESTree.TSEnumMemberNonComputedName, {
636
- type: NodeTypes[number];
637
- }> | Extract<TSESTree.TSExportAssignment, {
638
- type: NodeTypes[number];
639
- }> | Extract<TSESTree.TSExportKeyword, {
640
- type: NodeTypes[number];
641
- }> | Extract<TSESTree.TSExternalModuleReference, {
642
- type: NodeTypes[number];
643
- }> | Extract<TSESTree.TSFunctionType, {
644
- type: NodeTypes[number];
645
- }> | Extract<TSESTree.TSImportEqualsDeclaration, {
646
- type: NodeTypes[number];
647
- }> | Extract<TSESTree.TSImportType, {
648
- type: NodeTypes[number];
649
- }> | Extract<TSESTree.TSIndexedAccessType, {
650
- type: NodeTypes[number];
651
- }> | Extract<TSESTree.TSIndexSignature, {
652
- type: NodeTypes[number];
653
- }> | Extract<TSESTree.TSInferType, {
654
- type: NodeTypes[number];
655
- }> | Extract<TSESTree.TSInstantiationExpression, {
656
- type: NodeTypes[number];
657
- }> | Extract<TSESTree.TSInterfaceBody, {
658
- type: NodeTypes[number];
659
- }> | Extract<TSESTree.TSInterfaceDeclaration, {
660
- type: NodeTypes[number];
661
- }> | Extract<TSESTree.TSInterfaceHeritage, {
662
- type: NodeTypes[number];
663
- }> | Extract<TSESTree.TSIntersectionType, {
664
- type: NodeTypes[number];
665
- }> | Extract<TSESTree.TSIntrinsicKeyword, {
666
- type: NodeTypes[number];
667
- }> | Extract<TSESTree.TSLiteralType, {
668
- type: NodeTypes[number];
669
- }> | Extract<TSESTree.TSMappedType, {
670
- type: NodeTypes[number];
671
- }> | Extract<TSESTree.TSMethodSignatureComputedName, {
672
- type: NodeTypes[number];
673
- }> | Extract<TSESTree.TSMethodSignatureNonComputedName, {
674
- type: NodeTypes[number];
675
- }> | Extract<TSESTree.TSModuleBlock, {
676
- type: NodeTypes[number];
677
- }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
678
- type: NodeTypes[number];
679
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
680
- type: NodeTypes[number];
681
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
682
- type: NodeTypes[number];
683
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
684
- type: NodeTypes[number];
685
- }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
686
- type: NodeTypes[number];
687
- }> | Extract<TSESTree.TSNamedTupleMember, {
688
- type: NodeTypes[number];
689
- }> | Extract<TSESTree.TSNamespaceExportDeclaration, {
690
- type: NodeTypes[number];
691
- }> | Extract<TSESTree.TSNeverKeyword, {
692
- type: NodeTypes[number];
693
- }> | Extract<TSESTree.TSNonNullExpression, {
694
- type: NodeTypes[number];
695
- }> | Extract<TSESTree.TSNullKeyword, {
696
- type: NodeTypes[number];
697
- }> | Extract<TSESTree.TSNumberKeyword, {
698
- type: NodeTypes[number];
699
- }> | Extract<TSESTree.TSObjectKeyword, {
700
- type: NodeTypes[number];
701
- }> | Extract<TSESTree.TSOptionalType, {
702
- type: NodeTypes[number];
703
- }> | Extract<TSESTree.TSParameterProperty, {
704
- type: NodeTypes[number];
705
- }> | Extract<TSESTree.TSPrivateKeyword, {
706
- type: NodeTypes[number];
707
- }> | Extract<TSESTree.TSPropertySignatureComputedName, {
708
- type: NodeTypes[number];
709
- }> | Extract<TSESTree.TSPropertySignatureNonComputedName, {
710
- type: NodeTypes[number];
711
- }> | Extract<TSESTree.TSProtectedKeyword, {
712
- type: NodeTypes[number];
713
- }> | Extract<TSESTree.TSPublicKeyword, {
714
- type: NodeTypes[number];
715
- }> | Extract<TSESTree.TSQualifiedName, {
716
- type: NodeTypes[number];
717
- }> | Extract<TSESTree.TSReadonlyKeyword, {
718
- type: NodeTypes[number];
719
- }> | Extract<TSESTree.TSRestType, {
720
- type: NodeTypes[number];
721
- }> | Extract<TSESTree.TSSatisfiesExpression, {
722
- type: NodeTypes[number];
723
- }> | Extract<TSESTree.TSStaticKeyword, {
724
- type: NodeTypes[number];
725
- }> | Extract<TSESTree.TSStringKeyword, {
726
- type: NodeTypes[number];
727
- }> | Extract<TSESTree.TSSymbolKeyword, {
728
- type: NodeTypes[number];
729
- }> | Extract<TSESTree.TSTemplateLiteralType, {
730
- type: NodeTypes[number];
731
- }> | Extract<TSESTree.TSThisType, {
732
- type: NodeTypes[number];
733
- }> | Extract<TSESTree.TSTupleType, {
734
- type: NodeTypes[number];
735
- }> | Extract<TSESTree.TSTypeAliasDeclaration, {
736
- type: NodeTypes[number];
737
- }> | Extract<TSESTree.TSTypeAnnotation, {
738
- type: NodeTypes[number];
739
- }> | Extract<TSESTree.TSTypeAssertion, {
740
- type: NodeTypes[number];
741
- }> | Extract<TSESTree.TSTypeLiteral, {
742
- type: NodeTypes[number];
743
- }> | Extract<TSESTree.TSTypeOperator, {
744
- type: NodeTypes[number];
745
- }> | Extract<TSESTree.TSTypeParameter, {
746
- type: NodeTypes[number];
747
- }> | Extract<TSESTree.TSTypeParameterDeclaration, {
748
- type: NodeTypes[number];
749
- }> | Extract<TSESTree.TSTypeParameterInstantiation, {
750
- type: NodeTypes[number];
751
- }> | Extract<TSESTree.TSTypePredicate, {
752
- type: NodeTypes[number];
753
- }> | Extract<TSESTree.TSTypeQuery, {
754
- type: NodeTypes[number];
755
- }> | Extract<TSESTree.TSTypeReference, {
756
- type: NodeTypes[number];
757
- }> | Extract<TSESTree.TSUndefinedKeyword, {
758
- type: NodeTypes[number];
759
- }> | Extract<TSESTree.TSUnionType, {
760
- type: NodeTypes[number];
761
- }> | Extract<TSESTree.TSUnknownKeyword, {
762
- type: NodeTypes[number];
763
- }> | Extract<TSESTree.TSVoidKeyword, {
764
- type: NodeTypes[number];
765
- }> | Extract<TSESTree.UnaryExpression, {
766
- type: NodeTypes[number];
767
- }> | Extract<TSESTree.UpdateExpression, {
768
- type: NodeTypes[number];
769
- }> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
770
- type: NodeTypes[number];
771
- }> | Extract<TSESTree.UsingInForOfDeclaration, {
772
- type: NodeTypes[number];
773
- }> | Extract<TSESTree.UsingInNormalContextDeclaration, {
774
- type: NodeTypes[number];
775
- }> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
776
- type: NodeTypes[number];
777
- }> | Extract<TSESTree.UsingInForOfDeclarator, {
778
- type: NodeTypes[number];
779
- }> | Extract<TSESTree.UsingInNomalConextDeclarator, {
780
- type: NodeTypes[number];
781
- }> | Extract<TSESTree.WhileStatement, {
782
- type: NodeTypes[number];
783
- }> | Extract<TSESTree.WithStatement, {
784
- type: NodeTypes[number];
785
- }> | Extract<TSESTree.YieldExpression, {
4
+ }>;
5
+ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
786
6
  type: NodeTypes[number];
787
7
  }>;
788
- export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, ExtractedNode extends Extract<TSESTree.Program, {
789
- type: NodeType;
790
- }> | Extract<TSESTree.AccessorPropertyComputedName, {
791
- type: NodeType;
792
- }> | Extract<TSESTree.AccessorPropertyNonComputedName, {
793
- type: NodeType;
794
- }> | Extract<TSESTree.ArrayExpression, {
795
- type: NodeType;
796
- }> | Extract<TSESTree.ArrayPattern, {
797
- type: NodeType;
798
- }> | Extract<TSESTree.ArrowFunctionExpression, {
799
- type: NodeType;
800
- }> | Extract<TSESTree.AssignmentExpression, {
801
- type: NodeType;
802
- }> | Extract<TSESTree.AssignmentPattern, {
803
- type: NodeType;
804
- }> | Extract<TSESTree.AwaitExpression, {
805
- type: NodeType;
806
- }> | Extract<TSESTree.BinaryExpression, {
807
- type: NodeType;
808
- }> | Extract<TSESTree.BlockStatement, {
809
- type: NodeType;
810
- }> | Extract<TSESTree.BreakStatement, {
811
- type: NodeType;
812
- }> | Extract<TSESTree.CallExpression, {
813
- type: NodeType;
814
- }> | Extract<TSESTree.CatchClause, {
815
- type: NodeType;
816
- }> | Extract<TSESTree.ChainExpression, {
817
- type: NodeType;
818
- }> | Extract<TSESTree.ClassBody, {
819
- type: NodeType;
820
- }> | Extract<TSESTree.ClassDeclarationWithName, {
821
- type: NodeType;
822
- }> | Extract<TSESTree.ClassDeclarationWithOptionalName, {
823
- type: NodeType;
824
- }> | Extract<TSESTree.ClassExpression, {
825
- type: NodeType;
826
- }> | Extract<TSESTree.ConditionalExpression, {
827
- type: NodeType;
828
- }> | Extract<TSESTree.ContinueStatement, {
829
- type: NodeType;
830
- }> | Extract<TSESTree.DebuggerStatement, {
831
- type: NodeType;
832
- }> | Extract<TSESTree.Decorator, {
833
- type: NodeType;
834
- }> | Extract<TSESTree.DoWhileStatement, {
835
- type: NodeType;
836
- }> | Extract<TSESTree.EmptyStatement, {
837
- type: NodeType;
838
- }> | Extract<TSESTree.ExportAllDeclaration, {
839
- type: NodeType;
840
- }> | Extract<TSESTree.ExportDefaultDeclaration, {
841
- type: NodeType;
842
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithMultiple, {
843
- type: NodeType;
844
- }> | Extract<TSESTree.ExportNamedDeclarationWithoutSourceWithSingle, {
845
- type: NodeType;
846
- }> | Extract<TSESTree.ExportNamedDeclarationWithSource, {
847
- type: NodeType;
848
- }> | Extract<TSESTree.ExportSpecifier, {
849
- type: NodeType;
850
- }> | Extract<TSESTree.ExpressionStatement, {
851
- type: NodeType;
852
- }> | Extract<TSESTree.ForInStatement, {
853
- type: NodeType;
854
- }> | Extract<TSESTree.ForOfStatement, {
855
- type: NodeType;
856
- }> | Extract<TSESTree.ForStatement, {
857
- type: NodeType;
858
- }> | Extract<TSESTree.FunctionDeclarationWithName, {
859
- type: NodeType;
860
- }> | Extract<TSESTree.FunctionDeclarationWithOptionalName, {
861
- type: NodeType;
862
- }> | Extract<TSESTree.FunctionExpression, {
863
- type: NodeType;
864
- }> | Extract<TSESTree.Identifier, {
865
- type: NodeType;
866
- }> | Extract<TSESTree.IfStatement, {
867
- type: NodeType;
868
- }> | Extract<TSESTree.ImportAttribute, {
869
- type: NodeType;
870
- }> | Extract<TSESTree.ImportDeclaration, {
871
- type: NodeType;
872
- }> | Extract<TSESTree.ImportDefaultSpecifier, {
873
- type: NodeType;
874
- }> | Extract<TSESTree.ImportExpression, {
875
- type: NodeType;
876
- }> | Extract<TSESTree.ImportNamespaceSpecifier, {
877
- type: NodeType;
878
- }> | Extract<TSESTree.ImportSpecifier, {
879
- type: NodeType;
880
- }> | Extract<TSESTree.JSXAttribute, {
881
- type: NodeType;
882
- }> | Extract<TSESTree.JSXClosingElement, {
883
- type: NodeType;
884
- }> | Extract<TSESTree.JSXClosingFragment, {
885
- type: NodeType;
886
- }> | Extract<TSESTree.JSXElement, {
887
- type: NodeType;
888
- }> | Extract<TSESTree.JSXEmptyExpression, {
889
- type: NodeType;
890
- }> | Extract<TSESTree.JSXExpressionContainer, {
891
- type: NodeType;
892
- }> | Extract<TSESTree.JSXFragment, {
893
- type: NodeType;
894
- }> | Extract<TSESTree.JSXIdentifier, {
895
- type: NodeType;
896
- }> | Extract<TSESTree.JSXMemberExpression, {
897
- type: NodeType;
898
- }> | Extract<TSESTree.JSXNamespacedName, {
899
- type: NodeType;
900
- }> | Extract<TSESTree.JSXOpeningElement, {
901
- type: NodeType;
902
- }> | Extract<TSESTree.JSXOpeningFragment, {
903
- type: NodeType;
904
- }> | Extract<TSESTree.JSXSpreadAttribute, {
905
- type: NodeType;
906
- }> | Extract<TSESTree.JSXSpreadChild, {
907
- type: NodeType;
908
- }> | Extract<TSESTree.JSXText, {
909
- type: NodeType;
910
- }> | Extract<TSESTree.LabeledStatement, {
911
- type: NodeType;
912
- }> | Extract<TSESTree.BigIntLiteral, {
913
- type: NodeType;
914
- }> | Extract<TSESTree.BooleanLiteral, {
915
- type: NodeType;
916
- }> | Extract<TSESTree.NullLiteral, {
917
- type: NodeType;
918
- }> | Extract<TSESTree.NumberLiteral, {
919
- type: NodeType;
920
- }> | Extract<TSESTree.RegExpLiteral, {
921
- type: NodeType;
922
- }> | Extract<TSESTree.StringLiteral, {
923
- type: NodeType;
924
- }> | Extract<TSESTree.LogicalExpression, {
925
- type: NodeType;
926
- }> | Extract<TSESTree.MemberExpressionComputedName, {
927
- type: NodeType;
928
- }> | Extract<TSESTree.MemberExpressionNonComputedName, {
929
- type: NodeType;
930
- }> | Extract<TSESTree.MetaProperty, {
931
- type: NodeType;
932
- }> | Extract<TSESTree.MethodDefinitionComputedName, {
933
- type: NodeType;
934
- }> | Extract<TSESTree.MethodDefinitionNonComputedName, {
935
- type: NodeType;
936
- }> | Extract<TSESTree.NewExpression, {
937
- type: NodeType;
938
- }> | Extract<TSESTree.ObjectExpression, {
939
- type: NodeType;
940
- }> | Extract<TSESTree.ObjectPattern, {
941
- type: NodeType;
942
- }> | Extract<TSESTree.PrivateIdentifier, {
943
- type: NodeType;
944
- }> | Extract<TSESTree.PropertyComputedName, {
945
- type: NodeType;
946
- }> | Extract<TSESTree.PropertyNonComputedName, {
947
- type: NodeType;
948
- }> | Extract<TSESTree.PropertyDefinitionComputedName, {
949
- type: NodeType;
950
- }> | Extract<TSESTree.PropertyDefinitionNonComputedName, {
951
- type: NodeType;
952
- }> | Extract<TSESTree.RestElement, {
953
- type: NodeType;
954
- }> | Extract<TSESTree.ReturnStatement, {
955
- type: NodeType;
956
- }> | Extract<TSESTree.SequenceExpression, {
957
- type: NodeType;
958
- }> | Extract<TSESTree.SpreadElement, {
959
- type: NodeType;
960
- }> | Extract<TSESTree.StaticBlock, {
961
- type: NodeType;
962
- }> | Extract<TSESTree.Super, {
963
- type: NodeType;
964
- }> | Extract<TSESTree.SwitchCase, {
965
- type: NodeType;
966
- }> | Extract<TSESTree.SwitchStatement, {
967
- type: NodeType;
968
- }> | Extract<TSESTree.TaggedTemplateExpression, {
969
- type: NodeType;
970
- }> | Extract<TSESTree.TemplateElement, {
971
- type: NodeType;
972
- }> | Extract<TSESTree.TemplateLiteral, {
973
- type: NodeType;
974
- }> | Extract<TSESTree.ThisExpression, {
975
- type: NodeType;
976
- }> | Extract<TSESTree.ThrowStatement, {
977
- type: NodeType;
978
- }> | Extract<TSESTree.TryStatement, {
979
- type: NodeType;
980
- }> | Extract<TSESTree.TSAbstractAccessorPropertyComputedName, {
981
- type: NodeType;
982
- }> | Extract<TSESTree.TSAbstractAccessorPropertyNonComputedName, {
983
- type: NodeType;
984
- }> | Extract<TSESTree.TSAbstractKeyword, {
985
- type: NodeType;
986
- }> | Extract<TSESTree.TSAbstractMethodDefinitionComputedName, {
987
- type: NodeType;
988
- }> | Extract<TSESTree.TSAbstractMethodDefinitionNonComputedName, {
989
- type: NodeType;
990
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionComputedName, {
991
- type: NodeType;
992
- }> | Extract<TSESTree.TSAbstractPropertyDefinitionNonComputedName, {
993
- type: NodeType;
994
- }> | Extract<TSESTree.TSAnyKeyword, {
995
- type: NodeType;
996
- }> | Extract<TSESTree.TSArrayType, {
997
- type: NodeType;
998
- }> | Extract<TSESTree.TSAsExpression, {
999
- type: NodeType;
1000
- }> | Extract<TSESTree.TSAsyncKeyword, {
1001
- type: NodeType;
1002
- }> | Extract<TSESTree.TSBigIntKeyword, {
1003
- type: NodeType;
1004
- }> | Extract<TSESTree.TSBooleanKeyword, {
1005
- type: NodeType;
1006
- }> | Extract<TSESTree.TSCallSignatureDeclaration, {
1007
- type: NodeType;
1008
- }> | Extract<TSESTree.TSClassImplements, {
1009
- type: NodeType;
1010
- }> | Extract<TSESTree.TSConditionalType, {
1011
- type: NodeType;
1012
- }> | Extract<TSESTree.TSConstructorType, {
1013
- type: NodeType;
1014
- }> | Extract<TSESTree.TSConstructSignatureDeclaration, {
1015
- type: NodeType;
1016
- }> | Extract<TSESTree.TSDeclareFunctionNoDeclare, {
1017
- type: NodeType;
1018
- }> | Extract<TSESTree.TSDeclareFunctionWithDeclare, {
1019
- type: NodeType;
1020
- }> | Extract<TSESTree.TSDeclareKeyword, {
1021
- type: NodeType;
1022
- }> | Extract<TSESTree.TSEmptyBodyFunctionExpression, {
1023
- type: NodeType;
1024
- }> | Extract<TSESTree.TSEnumDeclaration, {
1025
- type: NodeType;
1026
- }> | Extract<TSESTree.TSEnumMemberComputedName, {
1027
- type: NodeType;
1028
- }> | Extract<TSESTree.TSEnumMemberNonComputedName, {
1029
- type: NodeType;
1030
- }> | Extract<TSESTree.TSExportAssignment, {
1031
- type: NodeType;
1032
- }> | Extract<TSESTree.TSExportKeyword, {
1033
- type: NodeType;
1034
- }> | Extract<TSESTree.TSExternalModuleReference, {
1035
- type: NodeType;
1036
- }> | Extract<TSESTree.TSFunctionType, {
1037
- type: NodeType;
1038
- }> | Extract<TSESTree.TSImportEqualsDeclaration, {
1039
- type: NodeType;
1040
- }> | Extract<TSESTree.TSImportType, {
1041
- type: NodeType;
1042
- }> | Extract<TSESTree.TSIndexedAccessType, {
1043
- type: NodeType;
1044
- }> | Extract<TSESTree.TSIndexSignature, {
1045
- type: NodeType;
1046
- }> | Extract<TSESTree.TSInferType, {
1047
- type: NodeType;
1048
- }> | Extract<TSESTree.TSInstantiationExpression, {
1049
- type: NodeType;
1050
- }> | Extract<TSESTree.TSInterfaceBody, {
1051
- type: NodeType;
1052
- }> | Extract<TSESTree.TSInterfaceDeclaration, {
1053
- type: NodeType;
1054
- }> | Extract<TSESTree.TSInterfaceHeritage, {
1055
- type: NodeType;
1056
- }> | Extract<TSESTree.TSIntersectionType, {
1057
- type: NodeType;
1058
- }> | Extract<TSESTree.TSIntrinsicKeyword, {
1059
- type: NodeType;
1060
- }> | Extract<TSESTree.TSLiteralType, {
1061
- type: NodeType;
1062
- }> | Extract<TSESTree.TSMappedType, {
1063
- type: NodeType;
1064
- }> | Extract<TSESTree.TSMethodSignatureComputedName, {
1065
- type: NodeType;
1066
- }> | Extract<TSESTree.TSMethodSignatureNonComputedName, {
1067
- type: NodeType;
1068
- }> | Extract<TSESTree.TSModuleBlock, {
1069
- type: NodeType;
1070
- }> | Extract<TSESTree.TSModuleDeclarationGlobal, {
1071
- type: NodeType;
1072
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithIdentifierId, {
1073
- type: NodeType;
1074
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdDeclared, {
1075
- type: NodeType;
1076
- }> | Extract<TSESTree.TSModuleDeclarationModuleWithStringIdNotDeclared, {
1077
- type: NodeType;
1078
- }> | Extract<TSESTree.TSModuleDeclarationNamespace, {
1079
- type: NodeType;
1080
- }> | Extract<TSESTree.TSNamedTupleMember, {
1081
- type: NodeType;
1082
- }> | Extract<TSESTree.TSNamespaceExportDeclaration, {
1083
- type: NodeType;
1084
- }> | Extract<TSESTree.TSNeverKeyword, {
1085
- type: NodeType;
1086
- }> | Extract<TSESTree.TSNonNullExpression, {
1087
- type: NodeType;
1088
- }> | Extract<TSESTree.TSNullKeyword, {
1089
- type: NodeType;
1090
- }> | Extract<TSESTree.TSNumberKeyword, {
1091
- type: NodeType;
1092
- }> | Extract<TSESTree.TSObjectKeyword, {
1093
- type: NodeType;
1094
- }> | Extract<TSESTree.TSOptionalType, {
1095
- type: NodeType;
1096
- }> | Extract<TSESTree.TSParameterProperty, {
1097
- type: NodeType;
1098
- }> | Extract<TSESTree.TSPrivateKeyword, {
1099
- type: NodeType;
1100
- }> | Extract<TSESTree.TSPropertySignatureComputedName, {
1101
- type: NodeType;
1102
- }> | Extract<TSESTree.TSPropertySignatureNonComputedName, {
1103
- type: NodeType;
1104
- }> | Extract<TSESTree.TSProtectedKeyword, {
1105
- type: NodeType;
1106
- }> | Extract<TSESTree.TSPublicKeyword, {
1107
- type: NodeType;
1108
- }> | Extract<TSESTree.TSQualifiedName, {
1109
- type: NodeType;
1110
- }> | Extract<TSESTree.TSReadonlyKeyword, {
1111
- type: NodeType;
1112
- }> | Extract<TSESTree.TSRestType, {
1113
- type: NodeType;
1114
- }> | Extract<TSESTree.TSSatisfiesExpression, {
1115
- type: NodeType;
1116
- }> | Extract<TSESTree.TSStaticKeyword, {
1117
- type: NodeType;
1118
- }> | Extract<TSESTree.TSStringKeyword, {
1119
- type: NodeType;
1120
- }> | Extract<TSESTree.TSSymbolKeyword, {
1121
- type: NodeType;
1122
- }> | Extract<TSESTree.TSTemplateLiteralType, {
1123
- type: NodeType;
1124
- }> | Extract<TSESTree.TSThisType, {
1125
- type: NodeType;
1126
- }> | Extract<TSESTree.TSTupleType, {
1127
- type: NodeType;
1128
- }> | Extract<TSESTree.TSTypeAliasDeclaration, {
1129
- type: NodeType;
1130
- }> | Extract<TSESTree.TSTypeAnnotation, {
1131
- type: NodeType;
1132
- }> | Extract<TSESTree.TSTypeAssertion, {
1133
- type: NodeType;
1134
- }> | Extract<TSESTree.TSTypeLiteral, {
1135
- type: NodeType;
1136
- }> | Extract<TSESTree.TSTypeOperator, {
1137
- type: NodeType;
1138
- }> | Extract<TSESTree.TSTypeParameter, {
1139
- type: NodeType;
1140
- }> | Extract<TSESTree.TSTypeParameterDeclaration, {
1141
- type: NodeType;
1142
- }> | Extract<TSESTree.TSTypeParameterInstantiation, {
1143
- type: NodeType;
1144
- }> | Extract<TSESTree.TSTypePredicate, {
1145
- type: NodeType;
1146
- }> | Extract<TSESTree.TSTypeQuery, {
1147
- type: NodeType;
1148
- }> | Extract<TSESTree.TSTypeReference, {
1149
- type: NodeType;
1150
- }> | Extract<TSESTree.TSUndefinedKeyword, {
1151
- type: NodeType;
1152
- }> | Extract<TSESTree.TSUnionType, {
1153
- type: NodeType;
1154
- }> | Extract<TSESTree.TSUnknownKeyword, {
1155
- type: NodeType;
1156
- }> | Extract<TSESTree.TSVoidKeyword, {
1157
- type: NodeType;
1158
- }> | Extract<TSESTree.UnaryExpression, {
1159
- type: NodeType;
1160
- }> | Extract<TSESTree.UpdateExpression, {
1161
- type: NodeType;
1162
- }> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
1163
- type: NodeType;
1164
- }> | Extract<TSESTree.UsingInForOfDeclaration, {
1165
- type: NodeType;
1166
- }> | Extract<TSESTree.UsingInNormalContextDeclaration, {
1167
- type: NodeType;
1168
- }> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
1169
- type: NodeType;
1170
- }> | Extract<TSESTree.UsingInForOfDeclarator, {
1171
- type: NodeType;
1172
- }> | Extract<TSESTree.UsingInNomalConextDeclarator, {
1173
- type: NodeType;
1174
- }> | Extract<TSESTree.WhileStatement, {
1175
- type: NodeType;
1176
- }> | Extract<TSESTree.WithStatement, {
1177
- type: NodeType;
1178
- }> | Extract<TSESTree.YieldExpression, {
8
+ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, ExtractedNode extends Extract<TSESTree.Node, {
1179
9
  type: NodeType;
1180
10
  }>, Conditions extends Partial<ExtractedNode>>(nodeType: NodeType, conditions: Conditions) => ((node: TSESTree.Node | null | undefined) => node is Conditions & ExtractedNode);
1181
- export declare const isTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.BooleanToken, {
1182
- type: TokenType;
1183
- }> | Extract<TSESTree.BlockComment, {
1184
- type: TokenType;
1185
- }> | Extract<TSESTree.LineComment, {
1186
- type: TokenType;
1187
- }> | Extract<TSESTree.IdentifierToken, {
1188
- type: TokenType;
1189
- }> | Extract<TSESTree.JSXIdentifierToken, {
1190
- type: TokenType;
1191
- }> | Extract<TSESTree.JSXTextToken, {
1192
- type: TokenType;
1193
- }> | Extract<TSESTree.KeywordToken, {
1194
- type: TokenType;
1195
- }> | Extract<TSESTree.NullToken, {
1196
- type: TokenType;
1197
- }> | Extract<TSESTree.NumericToken, {
1198
- type: TokenType;
1199
- }> | Extract<TSESTree.PunctuatorToken, {
1200
- type: TokenType;
1201
- }> | Extract<TSESTree.RegularExpressionToken, {
1202
- type: TokenType;
1203
- }> | Extract<TSESTree.StringToken, {
1204
- type: TokenType;
1205
- }> | Extract<TSESTree.TemplateToken, {
11
+ export declare const isTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.Token, {
1206
12
  type: TokenType;
1207
13
  }>, Conditions extends Partial<TSESTree.Token & {
1208
14
  type: TokenType;
1209
15
  }>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Conditions & ExtractedToken);
1210
- export declare const isNotTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.BooleanToken, {
1211
- type: TokenType;
1212
- }> | Extract<TSESTree.BlockComment, {
1213
- type: TokenType;
1214
- }> | Extract<TSESTree.LineComment, {
1215
- type: TokenType;
1216
- }> | Extract<TSESTree.IdentifierToken, {
1217
- type: TokenType;
1218
- }> | Extract<TSESTree.JSXIdentifierToken, {
1219
- type: TokenType;
1220
- }> | Extract<TSESTree.JSXTextToken, {
1221
- type: TokenType;
1222
- }> | Extract<TSESTree.KeywordToken, {
1223
- type: TokenType;
1224
- }> | Extract<TSESTree.NullToken, {
1225
- type: TokenType;
1226
- }> | Extract<TSESTree.NumericToken, {
1227
- type: TokenType;
1228
- }> | Extract<TSESTree.PunctuatorToken, {
1229
- type: TokenType;
1230
- }> | Extract<TSESTree.RegularExpressionToken, {
1231
- type: TokenType;
1232
- }> | Extract<TSESTree.StringToken, {
1233
- type: TokenType;
1234
- }> | Extract<TSESTree.TemplateToken, {
16
+ export declare const isNotTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.Token, {
1235
17
  type: TokenType;
1236
18
  }>, Conditions extends Partial<ExtractedToken>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Exclude<TSESTree.Token, Conditions & ExtractedToken>);
1237
19
  //# sourceMappingURL=helpers.d.ts.map