hermes-estree 0.33.3 → 0.35.0
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.
|
@@ -70,6 +70,7 @@ import type {
|
|
|
70
70
|
DeclareOpaqueType,
|
|
71
71
|
DeclareTypeAlias,
|
|
72
72
|
DeclareVariable,
|
|
73
|
+
Decorator,
|
|
73
74
|
DoWhileStatement,
|
|
74
75
|
EmptyStatement,
|
|
75
76
|
EmptyTypeAnnotation,
|
|
@@ -251,16 +252,20 @@ interface ArrowFunctionExpression_With_params extends ArrowFunctionExpression {
|
|
|
251
252
|
interface ArrowFunctionExpression_With_body extends ArrowFunctionExpression {
|
|
252
253
|
+body: $NonMaybeType<ArrowFunctionExpression['body']>;
|
|
253
254
|
}
|
|
254
|
-
interface ArrowFunctionExpression_With_typeParameters
|
|
255
|
+
interface ArrowFunctionExpression_With_typeParameters
|
|
256
|
+
extends ArrowFunctionExpression {
|
|
255
257
|
+typeParameters: $NonMaybeType<ArrowFunctionExpression['typeParameters']>;
|
|
256
258
|
}
|
|
257
|
-
interface ArrowFunctionExpression_With_returnType
|
|
259
|
+
interface ArrowFunctionExpression_With_returnType
|
|
260
|
+
extends ArrowFunctionExpression {
|
|
258
261
|
+returnType: $NonMaybeType<ArrowFunctionExpression['returnType']>;
|
|
259
262
|
}
|
|
260
|
-
interface ArrowFunctionExpression_With_predicate
|
|
263
|
+
interface ArrowFunctionExpression_With_predicate
|
|
264
|
+
extends ArrowFunctionExpression {
|
|
261
265
|
+predicate: $NonMaybeType<ArrowFunctionExpression['predicate']>;
|
|
262
266
|
}
|
|
263
|
-
interface ArrowFunctionExpression_With_expression
|
|
267
|
+
interface ArrowFunctionExpression_With_expression
|
|
268
|
+
extends ArrowFunctionExpression {
|
|
264
269
|
+expression: $NonMaybeType<ArrowFunctionExpression['expression']>;
|
|
265
270
|
}
|
|
266
271
|
interface ArrowFunctionExpression_With_async extends ArrowFunctionExpression {
|
|
@@ -293,7 +298,8 @@ interface AssignmentPattern_With_right extends AssignmentPattern {
|
|
|
293
298
|
interface AwaitExpression_With_argument extends AwaitExpression {
|
|
294
299
|
+argument: $NonMaybeType<AwaitExpression['argument']>;
|
|
295
300
|
}
|
|
296
|
-
interface BigIntLiteralTypeAnnotation_With_raw
|
|
301
|
+
interface BigIntLiteralTypeAnnotation_With_raw
|
|
302
|
+
extends BigIntLiteralTypeAnnotation {
|
|
297
303
|
+raw: $NonMaybeType<BigIntLiteralTypeAnnotation['raw']>;
|
|
298
304
|
}
|
|
299
305
|
interface BinaryExpression_With_left extends BinaryExpression {
|
|
@@ -311,10 +317,12 @@ interface BlockStatement_With_body extends BlockStatement {
|
|
|
311
317
|
interface BlockStatement_With_implicit extends BlockStatement {
|
|
312
318
|
+implicit: $NonMaybeType<BlockStatement['implicit']>;
|
|
313
319
|
}
|
|
314
|
-
interface BooleanLiteralTypeAnnotation_With_value
|
|
320
|
+
interface BooleanLiteralTypeAnnotation_With_value
|
|
321
|
+
extends BooleanLiteralTypeAnnotation {
|
|
315
322
|
+value: $NonMaybeType<BooleanLiteralTypeAnnotation['value']>;
|
|
316
323
|
}
|
|
317
|
-
interface BooleanLiteralTypeAnnotation_With_raw
|
|
324
|
+
interface BooleanLiteralTypeAnnotation_With_raw
|
|
325
|
+
extends BooleanLiteralTypeAnnotation {
|
|
318
326
|
+raw: $NonMaybeType<BooleanLiteralTypeAnnotation['raw']>;
|
|
319
327
|
}
|
|
320
328
|
interface BreakStatement_With_label extends BreakStatement {
|
|
@@ -398,12 +406,16 @@ interface ComponentDeclaration_With_params extends ComponentDeclaration {
|
|
|
398
406
|
interface ComponentDeclaration_With_body extends ComponentDeclaration {
|
|
399
407
|
+body: $NonMaybeType<ComponentDeclaration['body']>;
|
|
400
408
|
}
|
|
401
|
-
interface ComponentDeclaration_With_typeParameters
|
|
409
|
+
interface ComponentDeclaration_With_typeParameters
|
|
410
|
+
extends ComponentDeclaration {
|
|
402
411
|
+typeParameters: $NonMaybeType<ComponentDeclaration['typeParameters']>;
|
|
403
412
|
}
|
|
404
413
|
interface ComponentDeclaration_With_rendersType extends ComponentDeclaration {
|
|
405
414
|
+rendersType: $NonMaybeType<ComponentDeclaration['rendersType']>;
|
|
406
415
|
}
|
|
416
|
+
interface ComponentDeclaration_With_async extends ComponentDeclaration {
|
|
417
|
+
+async: $NonMaybeType<ComponentDeclaration['async']>;
|
|
418
|
+
}
|
|
407
419
|
interface ComponentParameter_With_name extends ComponentParameter {
|
|
408
420
|
+name: $NonMaybeType<ComponentParameter['name']>;
|
|
409
421
|
}
|
|
@@ -419,16 +431,19 @@ interface ComponentTypeAnnotation_With_params extends ComponentTypeAnnotation {
|
|
|
419
431
|
interface ComponentTypeAnnotation_With_rest extends ComponentTypeAnnotation {
|
|
420
432
|
+rest: $NonMaybeType<ComponentTypeAnnotation['rest']>;
|
|
421
433
|
}
|
|
422
|
-
interface ComponentTypeAnnotation_With_typeParameters
|
|
434
|
+
interface ComponentTypeAnnotation_With_typeParameters
|
|
435
|
+
extends ComponentTypeAnnotation {
|
|
423
436
|
+typeParameters: $NonMaybeType<ComponentTypeAnnotation['typeParameters']>;
|
|
424
437
|
}
|
|
425
|
-
interface ComponentTypeAnnotation_With_rendersType
|
|
438
|
+
interface ComponentTypeAnnotation_With_rendersType
|
|
439
|
+
extends ComponentTypeAnnotation {
|
|
426
440
|
+rendersType: $NonMaybeType<ComponentTypeAnnotation['rendersType']>;
|
|
427
441
|
}
|
|
428
442
|
interface ComponentTypeParameter_With_name extends ComponentTypeParameter {
|
|
429
443
|
+name: $NonMaybeType<ComponentTypeParameter['name']>;
|
|
430
444
|
}
|
|
431
|
-
interface ComponentTypeParameter_With_typeAnnotation
|
|
445
|
+
interface ComponentTypeParameter_With_typeAnnotation
|
|
446
|
+
extends ComponentTypeParameter {
|
|
432
447
|
+typeAnnotation: $NonMaybeType<ComponentTypeParameter['typeAnnotation']>;
|
|
433
448
|
}
|
|
434
449
|
interface ComponentTypeParameter_With_optional extends ComponentTypeParameter {
|
|
@@ -443,16 +458,20 @@ interface ConditionalExpression_With_alternate extends ConditionalExpression {
|
|
|
443
458
|
interface ConditionalExpression_With_consequent extends ConditionalExpression {
|
|
444
459
|
+consequent: $NonMaybeType<ConditionalExpression['consequent']>;
|
|
445
460
|
}
|
|
446
|
-
interface ConditionalTypeAnnotation_With_checkType
|
|
461
|
+
interface ConditionalTypeAnnotation_With_checkType
|
|
462
|
+
extends ConditionalTypeAnnotation {
|
|
447
463
|
+checkType: $NonMaybeType<ConditionalTypeAnnotation['checkType']>;
|
|
448
464
|
}
|
|
449
|
-
interface ConditionalTypeAnnotation_With_extendsType
|
|
465
|
+
interface ConditionalTypeAnnotation_With_extendsType
|
|
466
|
+
extends ConditionalTypeAnnotation {
|
|
450
467
|
+extendsType: $NonMaybeType<ConditionalTypeAnnotation['extendsType']>;
|
|
451
468
|
}
|
|
452
|
-
interface ConditionalTypeAnnotation_With_trueType
|
|
469
|
+
interface ConditionalTypeAnnotation_With_trueType
|
|
470
|
+
extends ConditionalTypeAnnotation {
|
|
453
471
|
+trueType: $NonMaybeType<ConditionalTypeAnnotation['trueType']>;
|
|
454
472
|
}
|
|
455
|
-
interface ConditionalTypeAnnotation_With_falseType
|
|
473
|
+
interface ConditionalTypeAnnotation_With_falseType
|
|
474
|
+
extends ConditionalTypeAnnotation {
|
|
456
475
|
+falseType: $NonMaybeType<ConditionalTypeAnnotation['falseType']>;
|
|
457
476
|
}
|
|
458
477
|
interface ContinueStatement_With_label extends ContinueStatement {
|
|
@@ -500,19 +519,24 @@ interface DeclareEnum_With_id extends DeclareEnum {
|
|
|
500
519
|
interface DeclareEnum_With_body extends DeclareEnum {
|
|
501
520
|
+body: $NonMaybeType<DeclareEnum['body']>;
|
|
502
521
|
}
|
|
503
|
-
interface DeclareExportAllDeclaration_With_source
|
|
522
|
+
interface DeclareExportAllDeclaration_With_source
|
|
523
|
+
extends DeclareExportAllDeclaration {
|
|
504
524
|
+source: $NonMaybeType<DeclareExportAllDeclaration['source']>;
|
|
505
525
|
}
|
|
506
|
-
interface DeclareExportDeclaration_With_declaration
|
|
526
|
+
interface DeclareExportDeclaration_With_declaration
|
|
527
|
+
extends DeclareExportDeclaration {
|
|
507
528
|
+declaration: $NonMaybeType<DeclareExportDeclaration['declaration']>;
|
|
508
529
|
}
|
|
509
|
-
interface DeclareExportDeclaration_With_specifiers
|
|
530
|
+
interface DeclareExportDeclaration_With_specifiers
|
|
531
|
+
extends DeclareExportDeclaration {
|
|
510
532
|
+specifiers: $NonMaybeType<DeclareExportDeclaration['specifiers']>;
|
|
511
533
|
}
|
|
512
|
-
interface DeclareExportDeclaration_With_source
|
|
534
|
+
interface DeclareExportDeclaration_With_source
|
|
535
|
+
extends DeclareExportDeclaration {
|
|
513
536
|
+source: $NonMaybeType<DeclareExportDeclaration['source']>;
|
|
514
537
|
}
|
|
515
|
-
interface DeclareExportDeclaration_With_default
|
|
538
|
+
interface DeclareExportDeclaration_With_default
|
|
539
|
+
extends DeclareExportDeclaration {
|
|
516
540
|
+default: $NonMaybeType<DeclareExportDeclaration['default']>;
|
|
517
541
|
}
|
|
518
542
|
interface DeclareFunction_With_id extends DeclareFunction {
|
|
@@ -542,7 +566,8 @@ interface DeclareModule_With_id extends DeclareModule {
|
|
|
542
566
|
interface DeclareModule_With_body extends DeclareModule {
|
|
543
567
|
+body: $NonMaybeType<DeclareModule['body']>;
|
|
544
568
|
}
|
|
545
|
-
interface DeclareModuleExports_With_typeAnnotation
|
|
569
|
+
interface DeclareModuleExports_With_typeAnnotation
|
|
570
|
+
extends DeclareModuleExports {
|
|
546
571
|
+typeAnnotation: $NonMaybeType<DeclareModuleExports['typeAnnotation']>;
|
|
547
572
|
}
|
|
548
573
|
interface DeclareNamespace_With_id extends DeclareNamespace {
|
|
@@ -584,6 +609,9 @@ interface DeclareVariable_With_id extends DeclareVariable {
|
|
|
584
609
|
interface DeclareVariable_With_kind extends DeclareVariable {
|
|
585
610
|
+kind: $NonMaybeType<DeclareVariable['kind']>;
|
|
586
611
|
}
|
|
612
|
+
interface Decorator_With_expression extends Decorator {
|
|
613
|
+
+expression: $NonMaybeType<Decorator['expression']>;
|
|
614
|
+
}
|
|
587
615
|
interface DoWhileStatement_With_body extends DoWhileStatement {
|
|
588
616
|
+body: $NonMaybeType<DoWhileStatement['body']>;
|
|
589
617
|
}
|
|
@@ -674,19 +702,23 @@ interface ExportAllDeclaration_With_source extends ExportAllDeclaration {
|
|
|
674
702
|
interface ExportAllDeclaration_With_exportKind extends ExportAllDeclaration {
|
|
675
703
|
+exportKind: $NonMaybeType<ExportAllDeclaration['exportKind']>;
|
|
676
704
|
}
|
|
677
|
-
interface ExportDefaultDeclaration_With_declaration
|
|
705
|
+
interface ExportDefaultDeclaration_With_declaration
|
|
706
|
+
extends ExportDefaultDeclaration {
|
|
678
707
|
+declaration: $NonMaybeType<ExportDefaultDeclaration['declaration']>;
|
|
679
708
|
}
|
|
680
|
-
interface ExportNamedDeclaration_With_declaration
|
|
709
|
+
interface ExportNamedDeclaration_With_declaration
|
|
710
|
+
extends ExportNamedDeclaration {
|
|
681
711
|
+declaration: $NonMaybeType<ExportNamedDeclaration['declaration']>;
|
|
682
712
|
}
|
|
683
|
-
interface ExportNamedDeclaration_With_specifiers
|
|
713
|
+
interface ExportNamedDeclaration_With_specifiers
|
|
714
|
+
extends ExportNamedDeclaration {
|
|
684
715
|
+specifiers: $NonMaybeType<ExportNamedDeclaration['specifiers']>;
|
|
685
716
|
}
|
|
686
717
|
interface ExportNamedDeclaration_With_source extends ExportNamedDeclaration {
|
|
687
718
|
+source: $NonMaybeType<ExportNamedDeclaration['source']>;
|
|
688
719
|
}
|
|
689
|
-
interface ExportNamedDeclaration_With_exportKind
|
|
720
|
+
interface ExportNamedDeclaration_With_exportKind
|
|
721
|
+
extends ExportNamedDeclaration {
|
|
690
722
|
+exportKind: $NonMaybeType<ExportNamedDeclaration['exportKind']>;
|
|
691
723
|
}
|
|
692
724
|
interface ExportSpecifier_With_exported extends ExportSpecifier {
|
|
@@ -788,13 +820,15 @@ interface FunctionTypeAnnotation_With_params extends FunctionTypeAnnotation {
|
|
|
788
820
|
interface FunctionTypeAnnotation_With_this extends FunctionTypeAnnotation {
|
|
789
821
|
+this: $NonMaybeType<FunctionTypeAnnotation['this']>;
|
|
790
822
|
}
|
|
791
|
-
interface FunctionTypeAnnotation_With_returnType
|
|
823
|
+
interface FunctionTypeAnnotation_With_returnType
|
|
824
|
+
extends FunctionTypeAnnotation {
|
|
792
825
|
+returnType: $NonMaybeType<FunctionTypeAnnotation['returnType']>;
|
|
793
826
|
}
|
|
794
827
|
interface FunctionTypeAnnotation_With_rest extends FunctionTypeAnnotation {
|
|
795
828
|
+rest: $NonMaybeType<FunctionTypeAnnotation['rest']>;
|
|
796
829
|
}
|
|
797
|
-
interface FunctionTypeAnnotation_With_typeParameters
|
|
830
|
+
interface FunctionTypeAnnotation_With_typeParameters
|
|
831
|
+
extends FunctionTypeAnnotation {
|
|
798
832
|
+typeParameters: $NonMaybeType<FunctionTypeAnnotation['typeParameters']>;
|
|
799
833
|
}
|
|
800
834
|
interface FunctionTypeParam_With_name extends FunctionTypeParam {
|
|
@@ -809,7 +843,8 @@ interface FunctionTypeParam_With_optional extends FunctionTypeParam {
|
|
|
809
843
|
interface GenericTypeAnnotation_With_id extends GenericTypeAnnotation {
|
|
810
844
|
+id: $NonMaybeType<GenericTypeAnnotation['id']>;
|
|
811
845
|
}
|
|
812
|
-
interface GenericTypeAnnotation_With_typeParameters
|
|
846
|
+
interface GenericTypeAnnotation_With_typeParameters
|
|
847
|
+
extends GenericTypeAnnotation {
|
|
813
848
|
+typeParameters: $NonMaybeType<GenericTypeAnnotation['typeParameters']>;
|
|
814
849
|
}
|
|
815
850
|
interface HookDeclaration_With_id extends HookDeclaration {
|
|
@@ -827,6 +862,9 @@ interface HookDeclaration_With_typeParameters extends HookDeclaration {
|
|
|
827
862
|
interface HookDeclaration_With_returnType extends HookDeclaration {
|
|
828
863
|
+returnType: $NonMaybeType<HookDeclaration['returnType']>;
|
|
829
864
|
}
|
|
865
|
+
interface HookDeclaration_With_async extends HookDeclaration {
|
|
866
|
+
+async: $NonMaybeType<HookDeclaration['async']>;
|
|
867
|
+
}
|
|
830
868
|
interface HookTypeAnnotation_With_params extends HookTypeAnnotation {
|
|
831
869
|
+params: $NonMaybeType<HookTypeAnnotation['params']>;
|
|
832
870
|
}
|
|
@@ -869,8 +907,8 @@ interface ImportDeclaration_With_specifiers extends ImportDeclaration {
|
|
|
869
907
|
interface ImportDeclaration_With_source extends ImportDeclaration {
|
|
870
908
|
+source: $NonMaybeType<ImportDeclaration['source']>;
|
|
871
909
|
}
|
|
872
|
-
interface
|
|
873
|
-
+
|
|
910
|
+
interface ImportDeclaration_With_attributes extends ImportDeclaration {
|
|
911
|
+
+attributes: $NonMaybeType<ImportDeclaration['attributes']>;
|
|
874
912
|
}
|
|
875
913
|
interface ImportDeclaration_With_importKind extends ImportDeclaration {
|
|
876
914
|
+importKind: $NonMaybeType<ImportDeclaration['importKind']>;
|
|
@@ -908,7 +946,8 @@ interface InferTypeAnnotation_With_typeParameter extends InferTypeAnnotation {
|
|
|
908
946
|
interface InterfaceDeclaration_With_id extends InterfaceDeclaration {
|
|
909
947
|
+id: $NonMaybeType<InterfaceDeclaration['id']>;
|
|
910
948
|
}
|
|
911
|
-
interface InterfaceDeclaration_With_typeParameters
|
|
949
|
+
interface InterfaceDeclaration_With_typeParameters
|
|
950
|
+
extends InterfaceDeclaration {
|
|
912
951
|
+typeParameters: $NonMaybeType<InterfaceDeclaration['typeParameters']>;
|
|
913
952
|
}
|
|
914
953
|
interface InterfaceDeclaration_With_extends extends InterfaceDeclaration {
|
|
@@ -929,7 +968,8 @@ interface InterfaceTypeAnnotation_With_extends extends InterfaceTypeAnnotation {
|
|
|
929
968
|
interface InterfaceTypeAnnotation_With_body extends InterfaceTypeAnnotation {
|
|
930
969
|
+body: $NonMaybeType<InterfaceTypeAnnotation['body']>;
|
|
931
970
|
}
|
|
932
|
-
interface IntersectionTypeAnnotation_With_types
|
|
971
|
+
interface IntersectionTypeAnnotation_With_types
|
|
972
|
+
extends IntersectionTypeAnnotation {
|
|
933
973
|
+types: $NonMaybeType<IntersectionTypeAnnotation['types']>;
|
|
934
974
|
}
|
|
935
975
|
interface JSXAttribute_With_name extends JSXAttribute {
|
|
@@ -950,7 +990,8 @@ interface JSXElement_With_children extends JSXElement {
|
|
|
950
990
|
interface JSXElement_With_closingElement extends JSXElement {
|
|
951
991
|
+closingElement: $NonMaybeType<JSXElement['closingElement']>;
|
|
952
992
|
}
|
|
953
|
-
interface JSXExpressionContainer_With_expression
|
|
993
|
+
interface JSXExpressionContainer_With_expression
|
|
994
|
+
extends JSXExpressionContainer {
|
|
954
995
|
+expression: $NonMaybeType<JSXExpressionContainer['expression']>;
|
|
955
996
|
}
|
|
956
997
|
interface JSXFragment_With_openingFragment extends JSXFragment {
|
|
@@ -1055,13 +1096,16 @@ interface MatchExpressionCase_With_guard extends MatchExpressionCase {
|
|
|
1055
1096
|
interface MatchIdentifierPattern_With_id extends MatchIdentifierPattern {
|
|
1056
1097
|
+id: $NonMaybeType<MatchIdentifierPattern['id']>;
|
|
1057
1098
|
}
|
|
1058
|
-
interface MatchInstanceObjectPattern_With_properties
|
|
1099
|
+
interface MatchInstanceObjectPattern_With_properties
|
|
1100
|
+
extends MatchInstanceObjectPattern {
|
|
1059
1101
|
+properties: $NonMaybeType<MatchInstanceObjectPattern['properties']>;
|
|
1060
1102
|
}
|
|
1061
|
-
interface MatchInstanceObjectPattern_With_rest
|
|
1103
|
+
interface MatchInstanceObjectPattern_With_rest
|
|
1104
|
+
extends MatchInstanceObjectPattern {
|
|
1062
1105
|
+rest: $NonMaybeType<MatchInstanceObjectPattern['rest']>;
|
|
1063
1106
|
}
|
|
1064
|
-
interface MatchInstancePattern_With_targetConstructor
|
|
1107
|
+
interface MatchInstancePattern_With_targetConstructor
|
|
1108
|
+
extends MatchInstancePattern {
|
|
1065
1109
|
+targetConstructor: $NonMaybeType<MatchInstancePattern['targetConstructor']>;
|
|
1066
1110
|
}
|
|
1067
1111
|
interface MatchInstancePattern_With_properties extends MatchInstancePattern {
|
|
@@ -1082,13 +1126,16 @@ interface MatchObjectPattern_With_properties extends MatchObjectPattern {
|
|
|
1082
1126
|
interface MatchObjectPattern_With_rest extends MatchObjectPattern {
|
|
1083
1127
|
+rest: $NonMaybeType<MatchObjectPattern['rest']>;
|
|
1084
1128
|
}
|
|
1085
|
-
interface MatchObjectPatternProperty_With_key
|
|
1129
|
+
interface MatchObjectPatternProperty_With_key
|
|
1130
|
+
extends MatchObjectPatternProperty {
|
|
1086
1131
|
+key: $NonMaybeType<MatchObjectPatternProperty['key']>;
|
|
1087
1132
|
}
|
|
1088
|
-
interface MatchObjectPatternProperty_With_pattern
|
|
1133
|
+
interface MatchObjectPatternProperty_With_pattern
|
|
1134
|
+
extends MatchObjectPatternProperty {
|
|
1089
1135
|
+pattern: $NonMaybeType<MatchObjectPatternProperty['pattern']>;
|
|
1090
1136
|
}
|
|
1091
|
-
interface MatchObjectPatternProperty_With_shorthand
|
|
1137
|
+
interface MatchObjectPatternProperty_With_shorthand
|
|
1138
|
+
extends MatchObjectPatternProperty {
|
|
1092
1139
|
+shorthand: $NonMaybeType<MatchObjectPatternProperty['shorthand']>;
|
|
1093
1140
|
}
|
|
1094
1141
|
interface MatchOrPattern_With_patterns extends MatchOrPattern {
|
|
@@ -1148,6 +1195,9 @@ interface MethodDefinition_With_computed extends MethodDefinition {
|
|
|
1148
1195
|
interface MethodDefinition_With_static extends MethodDefinition {
|
|
1149
1196
|
+static: $NonMaybeType<MethodDefinition['static']>;
|
|
1150
1197
|
}
|
|
1198
|
+
interface MethodDefinition_With_decorators extends MethodDefinition {
|
|
1199
|
+
+decorators: $NonMaybeType<MethodDefinition['decorators']>;
|
|
1200
|
+
}
|
|
1151
1201
|
interface NewExpression_With_callee extends NewExpression {
|
|
1152
1202
|
+callee: $NonMaybeType<NewExpression['callee']>;
|
|
1153
1203
|
}
|
|
@@ -1157,13 +1207,16 @@ interface NewExpression_With_typeArguments extends NewExpression {
|
|
|
1157
1207
|
interface NewExpression_With_arguments extends NewExpression {
|
|
1158
1208
|
+arguments: $NonMaybeType<NewExpression['arguments']>;
|
|
1159
1209
|
}
|
|
1160
|
-
interface NullableTypeAnnotation_With_typeAnnotation
|
|
1210
|
+
interface NullableTypeAnnotation_With_typeAnnotation
|
|
1211
|
+
extends NullableTypeAnnotation {
|
|
1161
1212
|
+typeAnnotation: $NonMaybeType<NullableTypeAnnotation['typeAnnotation']>;
|
|
1162
1213
|
}
|
|
1163
|
-
interface NumberLiteralTypeAnnotation_With_value
|
|
1214
|
+
interface NumberLiteralTypeAnnotation_With_value
|
|
1215
|
+
extends NumberLiteralTypeAnnotation {
|
|
1164
1216
|
+value: $NonMaybeType<NumberLiteralTypeAnnotation['value']>;
|
|
1165
1217
|
}
|
|
1166
|
-
interface NumberLiteralTypeAnnotation_With_raw
|
|
1218
|
+
interface NumberLiteralTypeAnnotation_With_raw
|
|
1219
|
+
extends NumberLiteralTypeAnnotation {
|
|
1167
1220
|
+raw: $NonMaybeType<NumberLiteralTypeAnnotation['raw']>;
|
|
1168
1221
|
}
|
|
1169
1222
|
interface ObjectExpression_With_properties extends ObjectExpression {
|
|
@@ -1181,7 +1234,8 @@ interface ObjectTypeAnnotation_With_properties extends ObjectTypeAnnotation {
|
|
|
1181
1234
|
interface ObjectTypeAnnotation_With_indexers extends ObjectTypeAnnotation {
|
|
1182
1235
|
+indexers: $NonMaybeType<ObjectTypeAnnotation['indexers']>;
|
|
1183
1236
|
}
|
|
1184
|
-
interface ObjectTypeAnnotation_With_callProperties
|
|
1237
|
+
interface ObjectTypeAnnotation_With_callProperties
|
|
1238
|
+
extends ObjectTypeAnnotation {
|
|
1185
1239
|
+callProperties: $NonMaybeType<ObjectTypeAnnotation['callProperties']>;
|
|
1186
1240
|
}
|
|
1187
1241
|
interface ObjectTypeAnnotation_With_internalSlots extends ObjectTypeAnnotation {
|
|
@@ -1229,19 +1283,24 @@ interface ObjectTypeInternalSlot_With_static extends ObjectTypeInternalSlot {
|
|
|
1229
1283
|
interface ObjectTypeInternalSlot_With_method extends ObjectTypeInternalSlot {
|
|
1230
1284
|
+method: $NonMaybeType<ObjectTypeInternalSlot['method']>;
|
|
1231
1285
|
}
|
|
1232
|
-
interface ObjectTypeMappedTypeProperty_With_keyTparam
|
|
1286
|
+
interface ObjectTypeMappedTypeProperty_With_keyTparam
|
|
1287
|
+
extends ObjectTypeMappedTypeProperty {
|
|
1233
1288
|
+keyTparam: $NonMaybeType<ObjectTypeMappedTypeProperty['keyTparam']>;
|
|
1234
1289
|
}
|
|
1235
|
-
interface ObjectTypeMappedTypeProperty_With_propType
|
|
1290
|
+
interface ObjectTypeMappedTypeProperty_With_propType
|
|
1291
|
+
extends ObjectTypeMappedTypeProperty {
|
|
1236
1292
|
+propType: $NonMaybeType<ObjectTypeMappedTypeProperty['propType']>;
|
|
1237
1293
|
}
|
|
1238
|
-
interface ObjectTypeMappedTypeProperty_With_sourceType
|
|
1294
|
+
interface ObjectTypeMappedTypeProperty_With_sourceType
|
|
1295
|
+
extends ObjectTypeMappedTypeProperty {
|
|
1239
1296
|
+sourceType: $NonMaybeType<ObjectTypeMappedTypeProperty['sourceType']>;
|
|
1240
1297
|
}
|
|
1241
|
-
interface ObjectTypeMappedTypeProperty_With_variance
|
|
1298
|
+
interface ObjectTypeMappedTypeProperty_With_variance
|
|
1299
|
+
extends ObjectTypeMappedTypeProperty {
|
|
1242
1300
|
+variance: $NonMaybeType<ObjectTypeMappedTypeProperty['variance']>;
|
|
1243
1301
|
}
|
|
1244
|
-
interface ObjectTypeMappedTypeProperty_With_optional
|
|
1302
|
+
interface ObjectTypeMappedTypeProperty_With_optional
|
|
1303
|
+
extends ObjectTypeMappedTypeProperty {
|
|
1245
1304
|
+optional: $NonMaybeType<ObjectTypeMappedTypeProperty['optional']>;
|
|
1246
1305
|
}
|
|
1247
1306
|
interface ObjectTypeProperty_With_key extends ObjectTypeProperty {
|
|
@@ -1268,7 +1327,8 @@ interface ObjectTypeProperty_With_variance extends ObjectTypeProperty {
|
|
|
1268
1327
|
interface ObjectTypeProperty_With_kind extends ObjectTypeProperty {
|
|
1269
1328
|
+kind: $NonMaybeType<ObjectTypeProperty['kind']>;
|
|
1270
1329
|
}
|
|
1271
|
-
interface ObjectTypeSpreadProperty_With_argument
|
|
1330
|
+
interface ObjectTypeSpreadProperty_With_argument
|
|
1331
|
+
extends ObjectTypeSpreadProperty {
|
|
1272
1332
|
+argument: $NonMaybeType<ObjectTypeSpreadProperty['argument']>;
|
|
1273
1333
|
}
|
|
1274
1334
|
interface OpaqueType_With_id extends OpaqueType {
|
|
@@ -1289,13 +1349,16 @@ interface OpaqueType_With_upperBound extends OpaqueType {
|
|
|
1289
1349
|
interface OpaqueType_With_supertype extends OpaqueType {
|
|
1290
1350
|
+supertype: $NonMaybeType<OpaqueType['supertype']>;
|
|
1291
1351
|
}
|
|
1292
|
-
interface OptionalIndexedAccessType_With_objectType
|
|
1352
|
+
interface OptionalIndexedAccessType_With_objectType
|
|
1353
|
+
extends OptionalIndexedAccessType {
|
|
1293
1354
|
+objectType: $NonMaybeType<OptionalIndexedAccessType['objectType']>;
|
|
1294
1355
|
}
|
|
1295
|
-
interface OptionalIndexedAccessType_With_indexType
|
|
1356
|
+
interface OptionalIndexedAccessType_With_indexType
|
|
1357
|
+
extends OptionalIndexedAccessType {
|
|
1296
1358
|
+indexType: $NonMaybeType<OptionalIndexedAccessType['indexType']>;
|
|
1297
1359
|
}
|
|
1298
|
-
interface OptionalIndexedAccessType_With_optional
|
|
1360
|
+
interface OptionalIndexedAccessType_With_optional
|
|
1361
|
+
extends OptionalIndexedAccessType {
|
|
1299
1362
|
+optional: $NonMaybeType<OptionalIndexedAccessType['optional']>;
|
|
1300
1363
|
}
|
|
1301
1364
|
interface PrivateIdentifier_With_name extends PrivateIdentifier {
|
|
@@ -1334,6 +1397,9 @@ interface PropertyDefinition_With_computed extends PropertyDefinition {
|
|
|
1334
1397
|
interface PropertyDefinition_With_static extends PropertyDefinition {
|
|
1335
1398
|
+static: $NonMaybeType<PropertyDefinition['static']>;
|
|
1336
1399
|
}
|
|
1400
|
+
interface PropertyDefinition_With_decorators extends PropertyDefinition {
|
|
1401
|
+
+decorators: $NonMaybeType<PropertyDefinition['decorators']>;
|
|
1402
|
+
}
|
|
1337
1403
|
interface PropertyDefinition_With_declare extends PropertyDefinition {
|
|
1338
1404
|
+declare: $NonMaybeType<PropertyDefinition['declare']>;
|
|
1339
1405
|
}
|
|
@@ -1349,13 +1415,15 @@ interface PropertyDefinition_With_typeAnnotation extends PropertyDefinition {
|
|
|
1349
1415
|
interface PropertyDefinition_With_tsModifiers extends PropertyDefinition {
|
|
1350
1416
|
+tsModifiers: $NonMaybeType<PropertyDefinition['tsModifiers']>;
|
|
1351
1417
|
}
|
|
1352
|
-
interface QualifiedTypeIdentifier_With_qualification
|
|
1418
|
+
interface QualifiedTypeIdentifier_With_qualification
|
|
1419
|
+
extends QualifiedTypeIdentifier {
|
|
1353
1420
|
+qualification: $NonMaybeType<QualifiedTypeIdentifier['qualification']>;
|
|
1354
1421
|
}
|
|
1355
1422
|
interface QualifiedTypeIdentifier_With_id extends QualifiedTypeIdentifier {
|
|
1356
1423
|
+id: $NonMaybeType<QualifiedTypeIdentifier['id']>;
|
|
1357
1424
|
}
|
|
1358
|
-
interface QualifiedTypeofIdentifier_With_qualification
|
|
1425
|
+
interface QualifiedTypeofIdentifier_With_qualification
|
|
1426
|
+
extends QualifiedTypeofIdentifier {
|
|
1359
1427
|
+qualification: $NonMaybeType<QualifiedTypeofIdentifier['qualification']>;
|
|
1360
1428
|
}
|
|
1361
1429
|
interface QualifiedTypeofIdentifier_With_id extends QualifiedTypeofIdentifier {
|
|
@@ -1376,30 +1444,37 @@ interface RecordDeclaration_With_body extends RecordDeclaration {
|
|
|
1376
1444
|
interface RecordDeclarationBody_With_elements extends RecordDeclarationBody {
|
|
1377
1445
|
+elements: $NonMaybeType<RecordDeclarationBody['elements']>;
|
|
1378
1446
|
}
|
|
1379
|
-
interface RecordDeclarationImplements_With_id
|
|
1447
|
+
interface RecordDeclarationImplements_With_id
|
|
1448
|
+
extends RecordDeclarationImplements {
|
|
1380
1449
|
+id: $NonMaybeType<RecordDeclarationImplements['id']>;
|
|
1381
1450
|
}
|
|
1382
|
-
interface RecordDeclarationImplements_With_typeArguments
|
|
1451
|
+
interface RecordDeclarationImplements_With_typeArguments
|
|
1452
|
+
extends RecordDeclarationImplements {
|
|
1383
1453
|
+typeArguments: $NonMaybeType<RecordDeclarationImplements['typeArguments']>;
|
|
1384
1454
|
}
|
|
1385
1455
|
interface RecordDeclarationProperty_With_key extends RecordDeclarationProperty {
|
|
1386
1456
|
+key: $NonMaybeType<RecordDeclarationProperty['key']>;
|
|
1387
1457
|
}
|
|
1388
|
-
interface RecordDeclarationProperty_With_typeAnnotation
|
|
1458
|
+
interface RecordDeclarationProperty_With_typeAnnotation
|
|
1459
|
+
extends RecordDeclarationProperty {
|
|
1389
1460
|
+typeAnnotation: $NonMaybeType<RecordDeclarationProperty['typeAnnotation']>;
|
|
1390
1461
|
}
|
|
1391
|
-
interface RecordDeclarationProperty_With_defaultValue
|
|
1462
|
+
interface RecordDeclarationProperty_With_defaultValue
|
|
1463
|
+
extends RecordDeclarationProperty {
|
|
1392
1464
|
+defaultValue: $NonMaybeType<RecordDeclarationProperty['defaultValue']>;
|
|
1393
1465
|
}
|
|
1394
|
-
interface RecordDeclarationStaticProperty_With_key
|
|
1466
|
+
interface RecordDeclarationStaticProperty_With_key
|
|
1467
|
+
extends RecordDeclarationStaticProperty {
|
|
1395
1468
|
+key: $NonMaybeType<RecordDeclarationStaticProperty['key']>;
|
|
1396
1469
|
}
|
|
1397
|
-
interface RecordDeclarationStaticProperty_With_typeAnnotation
|
|
1470
|
+
interface RecordDeclarationStaticProperty_With_typeAnnotation
|
|
1471
|
+
extends RecordDeclarationStaticProperty {
|
|
1398
1472
|
+typeAnnotation: $NonMaybeType<
|
|
1399
1473
|
RecordDeclarationStaticProperty['typeAnnotation'],
|
|
1400
1474
|
>;
|
|
1401
1475
|
}
|
|
1402
|
-
interface RecordDeclarationStaticProperty_With_value
|
|
1476
|
+
interface RecordDeclarationStaticProperty_With_value
|
|
1477
|
+
extends RecordDeclarationStaticProperty {
|
|
1403
1478
|
+value: $NonMaybeType<RecordDeclarationStaticProperty['value']>;
|
|
1404
1479
|
}
|
|
1405
1480
|
interface RecordExpression_With_recordConstructor extends RecordExpression {
|
|
@@ -1411,7 +1486,8 @@ interface RecordExpression_With_typeArguments extends RecordExpression {
|
|
|
1411
1486
|
interface RecordExpression_With_properties extends RecordExpression {
|
|
1412
1487
|
+properties: $NonMaybeType<RecordExpression['properties']>;
|
|
1413
1488
|
}
|
|
1414
|
-
interface RecordExpressionProperties_With_properties
|
|
1489
|
+
interface RecordExpressionProperties_With_properties
|
|
1490
|
+
extends RecordExpressionProperties {
|
|
1415
1491
|
+properties: $NonMaybeType<RecordExpressionProperties['properties']>;
|
|
1416
1492
|
}
|
|
1417
1493
|
interface RestElement_With_argument extends RestElement {
|
|
@@ -1429,10 +1505,12 @@ interface SpreadElement_With_argument extends SpreadElement {
|
|
|
1429
1505
|
interface StaticBlock_With_body extends StaticBlock {
|
|
1430
1506
|
+body: $NonMaybeType<StaticBlock['body']>;
|
|
1431
1507
|
}
|
|
1432
|
-
interface StringLiteralTypeAnnotation_With_value
|
|
1508
|
+
interface StringLiteralTypeAnnotation_With_value
|
|
1509
|
+
extends StringLiteralTypeAnnotation {
|
|
1433
1510
|
+value: $NonMaybeType<StringLiteralTypeAnnotation['value']>;
|
|
1434
1511
|
}
|
|
1435
|
-
interface StringLiteralTypeAnnotation_With_raw
|
|
1512
|
+
interface StringLiteralTypeAnnotation_With_raw
|
|
1513
|
+
extends StringLiteralTypeAnnotation {
|
|
1436
1514
|
+raw: $NonMaybeType<StringLiteralTypeAnnotation['raw']>;
|
|
1437
1515
|
}
|
|
1438
1516
|
interface SwitchCase_With_test extends SwitchCase {
|
|
@@ -1489,19 +1567,23 @@ interface TupleTypeAnnotation_With_inexact extends TupleTypeAnnotation {
|
|
|
1489
1567
|
interface TupleTypeLabeledElement_With_label extends TupleTypeLabeledElement {
|
|
1490
1568
|
+label: $NonMaybeType<TupleTypeLabeledElement['label']>;
|
|
1491
1569
|
}
|
|
1492
|
-
interface TupleTypeLabeledElement_With_elementType
|
|
1570
|
+
interface TupleTypeLabeledElement_With_elementType
|
|
1571
|
+
extends TupleTypeLabeledElement {
|
|
1493
1572
|
+elementType: $NonMaybeType<TupleTypeLabeledElement['elementType']>;
|
|
1494
1573
|
}
|
|
1495
|
-
interface TupleTypeLabeledElement_With_optional
|
|
1574
|
+
interface TupleTypeLabeledElement_With_optional
|
|
1575
|
+
extends TupleTypeLabeledElement {
|
|
1496
1576
|
+optional: $NonMaybeType<TupleTypeLabeledElement['optional']>;
|
|
1497
1577
|
}
|
|
1498
|
-
interface TupleTypeLabeledElement_With_variance
|
|
1578
|
+
interface TupleTypeLabeledElement_With_variance
|
|
1579
|
+
extends TupleTypeLabeledElement {
|
|
1499
1580
|
+variance: $NonMaybeType<TupleTypeLabeledElement['variance']>;
|
|
1500
1581
|
}
|
|
1501
1582
|
interface TupleTypeSpreadElement_With_label extends TupleTypeSpreadElement {
|
|
1502
1583
|
+label: $NonMaybeType<TupleTypeSpreadElement['label']>;
|
|
1503
1584
|
}
|
|
1504
|
-
interface TupleTypeSpreadElement_With_typeAnnotation
|
|
1585
|
+
interface TupleTypeSpreadElement_With_typeAnnotation
|
|
1586
|
+
extends TupleTypeSpreadElement {
|
|
1505
1587
|
+typeAnnotation: $NonMaybeType<TupleTypeSpreadElement['typeAnnotation']>;
|
|
1506
1588
|
}
|
|
1507
1589
|
interface TypeAlias_With_id extends TypeAlias {
|
|
@@ -1552,10 +1634,12 @@ interface TypeParameter_With_default extends TypeParameter {
|
|
|
1552
1634
|
interface TypeParameter_With_usesExtendsBound extends TypeParameter {
|
|
1553
1635
|
+usesExtendsBound: $NonMaybeType<TypeParameter['usesExtendsBound']>;
|
|
1554
1636
|
}
|
|
1555
|
-
interface TypeParameterDeclaration_With_params
|
|
1637
|
+
interface TypeParameterDeclaration_With_params
|
|
1638
|
+
extends TypeParameterDeclaration {
|
|
1556
1639
|
+params: $NonMaybeType<TypeParameterDeclaration['params']>;
|
|
1557
1640
|
}
|
|
1558
|
-
interface TypeParameterInstantiation_With_params
|
|
1641
|
+
interface TypeParameterInstantiation_With_params
|
|
1642
|
+
extends TypeParameterInstantiation {
|
|
1559
1643
|
+params: $NonMaybeType<TypeParameterInstantiation['params']>;
|
|
1560
1644
|
}
|
|
1561
1645
|
interface TypePredicate_With_parameterName extends TypePredicate {
|
|
@@ -1868,6 +1952,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
1868
1952
|
+'ComponentDeclaration[rendersType]'?: (
|
|
1869
1953
|
node: ComponentDeclaration_With_rendersType,
|
|
1870
1954
|
) => void,
|
|
1955
|
+
+'ComponentDeclaration[async]'?: (
|
|
1956
|
+
node: ComponentDeclaration_With_async,
|
|
1957
|
+
) => void,
|
|
1871
1958
|
+ComponentParameter?: (node: ComponentParameter) => void,
|
|
1872
1959
|
+'ComponentParameter[name]'?: (node: ComponentParameter_With_name) => void,
|
|
1873
1960
|
+'ComponentParameter[local]'?: (node: ComponentParameter_With_local) => void,
|
|
@@ -2014,6 +2101,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2014
2101
|
+DeclareVariable?: (node: DeclareVariable) => void,
|
|
2015
2102
|
+'DeclareVariable[id]'?: (node: DeclareVariable_With_id) => void,
|
|
2016
2103
|
+'DeclareVariable[kind]'?: (node: DeclareVariable_With_kind) => void,
|
|
2104
|
+
+Decorator?: (node: Decorator) => void,
|
|
2105
|
+
+'Decorator[expression]'?: (node: Decorator_With_expression) => void,
|
|
2017
2106
|
+DoWhileStatement?: (node: DoWhileStatement) => void,
|
|
2018
2107
|
+'DoWhileStatement[body]'?: (node: DoWhileStatement_With_body) => void,
|
|
2019
2108
|
+'DoWhileStatement[test]'?: (node: DoWhileStatement_With_test) => void,
|
|
@@ -2204,6 +2293,7 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2204
2293
|
+'HookDeclaration[returnType]'?: (
|
|
2205
2294
|
node: HookDeclaration_With_returnType,
|
|
2206
2295
|
) => void,
|
|
2296
|
+
+'HookDeclaration[async]'?: (node: HookDeclaration_With_async) => void,
|
|
2207
2297
|
+HookTypeAnnotation?: (node: HookTypeAnnotation) => void,
|
|
2208
2298
|
+'HookTypeAnnotation[params]'?: (
|
|
2209
2299
|
node: HookTypeAnnotation_With_params,
|
|
@@ -2233,8 +2323,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2233
2323
|
node: ImportDeclaration_With_specifiers,
|
|
2234
2324
|
) => void,
|
|
2235
2325
|
+'ImportDeclaration[source]'?: (node: ImportDeclaration_With_source) => void,
|
|
2236
|
-
+'ImportDeclaration[
|
|
2237
|
-
node:
|
|
2326
|
+
+'ImportDeclaration[attributes]'?: (
|
|
2327
|
+
node: ImportDeclaration_With_attributes,
|
|
2238
2328
|
) => void,
|
|
2239
2329
|
+'ImportDeclaration[importKind]'?: (
|
|
2240
2330
|
node: ImportDeclaration_With_importKind,
|
|
@@ -2478,6 +2568,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2478
2568
|
node: MethodDefinition_With_computed,
|
|
2479
2569
|
) => void,
|
|
2480
2570
|
+'MethodDefinition[static]'?: (node: MethodDefinition_With_static) => void,
|
|
2571
|
+
+'MethodDefinition[decorators]'?: (
|
|
2572
|
+
node: MethodDefinition_With_decorators,
|
|
2573
|
+
) => void,
|
|
2481
2574
|
+MixedTypeAnnotation?: (node: MixedTypeAnnotation) => void,
|
|
2482
2575
|
+NeverTypeAnnotation?: (node: NeverTypeAnnotation) => void,
|
|
2483
2576
|
+NewExpression?: (node: NewExpression) => void,
|
|
@@ -2634,6 +2727,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
2634
2727
|
+'PropertyDefinition[static]'?: (
|
|
2635
2728
|
node: PropertyDefinition_With_static,
|
|
2636
2729
|
) => void,
|
|
2730
|
+
+'PropertyDefinition[decorators]'?: (
|
|
2731
|
+
node: PropertyDefinition_With_decorators,
|
|
2732
|
+
) => void,
|
|
2637
2733
|
+'PropertyDefinition[declare]'?: (
|
|
2638
2734
|
node: PropertyDefinition_With_declare,
|
|
2639
2735
|
) => void,
|
|
@@ -3070,6 +3166,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3070
3166
|
+'ComponentDeclaration[rendersType]:exit'?: (
|
|
3071
3167
|
node: ComponentDeclaration_With_rendersType,
|
|
3072
3168
|
) => void,
|
|
3169
|
+
+'ComponentDeclaration[async]:exit'?: (
|
|
3170
|
+
node: ComponentDeclaration_With_async,
|
|
3171
|
+
) => void,
|
|
3073
3172
|
+'ComponentParameter:exit'?: (node: ComponentParameter) => void,
|
|
3074
3173
|
+'ComponentParameter[name]:exit'?: (
|
|
3075
3174
|
node: ComponentParameter_With_name,
|
|
@@ -3232,6 +3331,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3232
3331
|
+'DeclareVariable:exit'?: (node: DeclareVariable) => void,
|
|
3233
3332
|
+'DeclareVariable[id]:exit'?: (node: DeclareVariable_With_id) => void,
|
|
3234
3333
|
+'DeclareVariable[kind]:exit'?: (node: DeclareVariable_With_kind) => void,
|
|
3334
|
+
+'Decorator:exit'?: (node: Decorator) => void,
|
|
3335
|
+
+'Decorator[expression]:exit'?: (node: Decorator_With_expression) => void,
|
|
3235
3336
|
+'DoWhileStatement:exit'?: (node: DoWhileStatement) => void,
|
|
3236
3337
|
+'DoWhileStatement[body]:exit'?: (node: DoWhileStatement_With_body) => void,
|
|
3237
3338
|
+'DoWhileStatement[test]:exit'?: (node: DoWhileStatement_With_test) => void,
|
|
@@ -3434,6 +3535,7 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3434
3535
|
+'HookDeclaration[returnType]:exit'?: (
|
|
3435
3536
|
node: HookDeclaration_With_returnType,
|
|
3436
3537
|
) => void,
|
|
3538
|
+
+'HookDeclaration[async]:exit'?: (node: HookDeclaration_With_async) => void,
|
|
3437
3539
|
+'HookTypeAnnotation:exit'?: (node: HookTypeAnnotation) => void,
|
|
3438
3540
|
+'HookTypeAnnotation[params]:exit'?: (
|
|
3439
3541
|
node: HookTypeAnnotation_With_params,
|
|
@@ -3467,8 +3569,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3467
3569
|
+'ImportDeclaration[source]:exit'?: (
|
|
3468
3570
|
node: ImportDeclaration_With_source,
|
|
3469
3571
|
) => void,
|
|
3470
|
-
+'ImportDeclaration[
|
|
3471
|
-
node:
|
|
3572
|
+
+'ImportDeclaration[attributes]:exit'?: (
|
|
3573
|
+
node: ImportDeclaration_With_attributes,
|
|
3472
3574
|
) => void,
|
|
3473
3575
|
+'ImportDeclaration[importKind]:exit'?: (
|
|
3474
3576
|
node: ImportDeclaration_With_importKind,
|
|
@@ -3750,6 +3852,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3750
3852
|
+'MethodDefinition[static]:exit'?: (
|
|
3751
3853
|
node: MethodDefinition_With_static,
|
|
3752
3854
|
) => void,
|
|
3855
|
+
+'MethodDefinition[decorators]:exit'?: (
|
|
3856
|
+
node: MethodDefinition_With_decorators,
|
|
3857
|
+
) => void,
|
|
3753
3858
|
+'MixedTypeAnnotation:exit'?: (node: MixedTypeAnnotation) => void,
|
|
3754
3859
|
+'NeverTypeAnnotation:exit'?: (node: NeverTypeAnnotation) => void,
|
|
3755
3860
|
+'NewExpression:exit'?: (node: NewExpression) => void,
|
|
@@ -3926,6 +4031,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
|
|
|
3926
4031
|
+'PropertyDefinition[static]:exit'?: (
|
|
3927
4032
|
node: PropertyDefinition_With_static,
|
|
3928
4033
|
) => void,
|
|
4034
|
+
+'PropertyDefinition[decorators]:exit'?: (
|
|
4035
|
+
node: PropertyDefinition_With_decorators,
|
|
4036
|
+
) => void,
|
|
3929
4037
|
+'PropertyDefinition[declare]:exit'?: (
|
|
3930
4038
|
node: PropertyDefinition_With_declare,
|
|
3931
4039
|
) => void,
|
|
@@ -81,6 +81,7 @@ import type {
|
|
|
81
81
|
DeclareOpaqueType,
|
|
82
82
|
DeclareTypeAlias,
|
|
83
83
|
DeclareVariable,
|
|
84
|
+
Decorator,
|
|
84
85
|
DoWhileStatement,
|
|
85
86
|
EmptyStatement,
|
|
86
87
|
EmptyTypeAnnotation,
|
|
@@ -322,6 +323,7 @@ exports.isDeclareOpaqueType = isDeclareOpaqueType;
|
|
|
322
323
|
exports.isDeclareTypeAlias = isDeclareTypeAlias;
|
|
323
324
|
exports.isDeclareVariable = isDeclareVariable;
|
|
324
325
|
exports.isDeclaredPredicate = isDeclaredPredicate;
|
|
326
|
+
exports.isDecorator = isDecorator;
|
|
325
327
|
exports.isDecrementToken = isDecrementToken;
|
|
326
328
|
exports.isDefaultToken = isDefaultToken;
|
|
327
329
|
exports.isDeleteToken = isDeleteToken;
|
|
@@ -959,6 +961,14 @@ function isDeclareVariable(node
|
|
|
959
961
|
return node.type === 'DeclareVariable';
|
|
960
962
|
}
|
|
961
963
|
|
|
964
|
+
function isDecorator(node
|
|
965
|
+
/*: ESNode | Token */
|
|
966
|
+
)
|
|
967
|
+
/*: implies node is Decorator */
|
|
968
|
+
{
|
|
969
|
+
return node.type === 'Decorator';
|
|
970
|
+
}
|
|
971
|
+
|
|
962
972
|
function isDoWhileStatement(node
|
|
963
973
|
/*: ESNode | Token */
|
|
964
974
|
)
|
|
@@ -82,6 +82,7 @@ import type {
|
|
|
82
82
|
DeclareOpaqueType,
|
|
83
83
|
DeclareTypeAlias,
|
|
84
84
|
DeclareVariable,
|
|
85
|
+
Decorator,
|
|
85
86
|
DoWhileStatement,
|
|
86
87
|
EmptyStatement,
|
|
87
88
|
EmptyTypeAnnotation,
|
|
@@ -494,6 +495,11 @@ export function isDeclareVariable(node /*: ESNode | Token */) /*: implies node i
|
|
|
494
495
|
}
|
|
495
496
|
|
|
496
497
|
|
|
498
|
+
export function isDecorator(node /*: ESNode | Token */) /*: implies node is Decorator */ {
|
|
499
|
+
return node.type === 'Decorator';
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
|
|
497
503
|
export function isDoWhileStatement(node /*: ESNode | Token */) /*: implies node is DoWhileStatement */ {
|
|
498
504
|
return node.type === 'DoWhileStatement';
|
|
499
505
|
}
|
|
@@ -81,6 +81,7 @@ import type {
|
|
|
81
81
|
DeclareOpaqueType,
|
|
82
82
|
DeclareTypeAlias,
|
|
83
83
|
DeclareVariable,
|
|
84
|
+
Decorator,
|
|
84
85
|
DoWhileStatement,
|
|
85
86
|
EmptyStatement,
|
|
86
87
|
EmptyTypeAnnotation,
|
|
@@ -322,6 +323,7 @@ exports.isDeclareOpaqueType = isDeclareOpaqueType;
|
|
|
322
323
|
exports.isDeclareTypeAlias = isDeclareTypeAlias;
|
|
323
324
|
exports.isDeclareVariable = isDeclareVariable;
|
|
324
325
|
exports.isDeclaredPredicate = isDeclaredPredicate;
|
|
326
|
+
exports.isDecorator = isDecorator;
|
|
325
327
|
exports.isDecrementToken = isDecrementToken;
|
|
326
328
|
exports.isDefaultToken = isDefaultToken;
|
|
327
329
|
exports.isDeleteToken = isDeleteToken;
|
|
@@ -959,6 +961,14 @@ function isDeclareVariable(node
|
|
|
959
961
|
return node.type === 'DeclareVariable';
|
|
960
962
|
}
|
|
961
963
|
|
|
964
|
+
function isDecorator(node
|
|
965
|
+
/*: ESNode | Token */
|
|
966
|
+
)
|
|
967
|
+
/*: implies node is Decorator */
|
|
968
|
+
{
|
|
969
|
+
return node.type === 'Decorator';
|
|
970
|
+
}
|
|
971
|
+
|
|
962
972
|
function isDoWhileStatement(node
|
|
963
973
|
/*: ESNode | Token */
|
|
964
974
|
)
|
package/dist/types.js.flow
CHANGED
|
@@ -428,6 +428,7 @@ export interface ComponentParameter extends BaseNode {
|
|
|
428
428
|
|
|
429
429
|
export interface ComponentDeclaration extends BaseNode {
|
|
430
430
|
+type: 'ComponentDeclaration';
|
|
431
|
+
+async: boolean;
|
|
431
432
|
+body: BlockStatement;
|
|
432
433
|
+id: Identifier;
|
|
433
434
|
+params: $ReadOnlyArray<ComponentParameterAndRestElement>;
|
|
@@ -437,6 +438,7 @@ export interface ComponentDeclaration extends BaseNode {
|
|
|
437
438
|
|
|
438
439
|
export interface HookDeclaration extends BaseNode {
|
|
439
440
|
+type: 'HookDeclaration';
|
|
441
|
+
+async: boolean;
|
|
440
442
|
+id: Identifier;
|
|
441
443
|
+body: BlockStatement;
|
|
442
444
|
+params: $ReadOnlyArray<FunctionParameter>;
|
|
@@ -971,6 +973,7 @@ export interface MethodDefinitionConstructor extends MethodDefinitionBase {
|
|
|
971
973
|
+kind: 'constructor';
|
|
972
974
|
+computed: false;
|
|
973
975
|
+static: false;
|
|
976
|
+
+decorators: $ReadOnlyArray<Decorator>;
|
|
974
977
|
}
|
|
975
978
|
export interface MethodDefinitionWithComputedName extends MethodDefinitionBase {
|
|
976
979
|
+type: 'MethodDefinition';
|
|
@@ -978,6 +981,7 @@ export interface MethodDefinitionWithComputedName extends MethodDefinitionBase {
|
|
|
978
981
|
+kind: 'method' | 'get' | 'set';
|
|
979
982
|
+computed: true;
|
|
980
983
|
+static: boolean;
|
|
984
|
+
+decorators: $ReadOnlyArray<Decorator>;
|
|
981
985
|
}
|
|
982
986
|
export interface MethodDefinitionWithNonComputedName
|
|
983
987
|
extends MethodDefinitionBase {
|
|
@@ -986,6 +990,7 @@ export interface MethodDefinitionWithNonComputedName
|
|
|
986
990
|
+kind: 'method' | 'get' | 'set';
|
|
987
991
|
+computed: false;
|
|
988
992
|
+static: boolean;
|
|
993
|
+
+decorators: $ReadOnlyArray<Decorator>;
|
|
989
994
|
}
|
|
990
995
|
|
|
991
996
|
// `PropertyDefinition` is the new standard for all class properties
|
|
@@ -996,6 +1001,7 @@ interface PropertyDefinitionBase extends BaseNode {
|
|
|
996
1001
|
+value: null | Expression;
|
|
997
1002
|
+typeAnnotation: null | TypeAnnotation;
|
|
998
1003
|
+static: boolean;
|
|
1004
|
+
+decorators: $ReadOnlyArray<Decorator>;
|
|
999
1005
|
+variance: null | Variance;
|
|
1000
1006
|
+declare: boolean;
|
|
1001
1007
|
// hermes always emit this as false
|
|
@@ -1054,7 +1060,7 @@ export interface ImportDeclaration extends BaseNode {
|
|
|
1054
1060
|
ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier,
|
|
1055
1061
|
>;
|
|
1056
1062
|
+source: StringLiteral;
|
|
1057
|
-
+
|
|
1063
|
+
+attributes: $ReadOnlyArray<ImportAttribute>;
|
|
1058
1064
|
|
|
1059
1065
|
+importKind: 'value' | 'type' | 'typeof';
|
|
1060
1066
|
}
|
|
@@ -1207,7 +1213,7 @@ export type TypeAnnotationType =
|
|
|
1207
1213
|
|
|
1208
1214
|
export interface Variance extends BaseNode {
|
|
1209
1215
|
+type: 'Variance';
|
|
1210
|
-
+kind: 'plus' | 'minus';
|
|
1216
|
+
+kind: 'plus' | 'minus' | 'readonly';
|
|
1211
1217
|
}
|
|
1212
1218
|
|
|
1213
1219
|
interface BaseTypeAlias extends BaseNode {
|