hermes-estree 0.11.0 → 0.12.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.
@@ -362,8 +362,8 @@ interface ComponentDeclaration_With_typeParameters
362
362
  extends ComponentDeclaration {
363
363
  +typeParameters: $NonMaybeType<ComponentDeclaration['typeParameters']>;
364
364
  }
365
- interface ComponentDeclaration_With_returnType extends ComponentDeclaration {
366
- +returnType: $NonMaybeType<ComponentDeclaration['returnType']>;
365
+ interface ComponentDeclaration_With_rendersType extends ComponentDeclaration {
366
+ +rendersType: $NonMaybeType<ComponentDeclaration['rendersType']>;
367
367
  }
368
368
  interface ComponentParameter_With_name extends ComponentParameter {
369
369
  +name: $NonMaybeType<ComponentParameter['name']>;
@@ -384,9 +384,9 @@ interface ComponentTypeAnnotation_With_typeParameters
384
384
  extends ComponentTypeAnnotation {
385
385
  +typeParameters: $NonMaybeType<ComponentTypeAnnotation['typeParameters']>;
386
386
  }
387
- interface ComponentTypeAnnotation_With_returnType
387
+ interface ComponentTypeAnnotation_With_rendersType
388
388
  extends ComponentTypeAnnotation {
389
- +returnType: $NonMaybeType<ComponentTypeAnnotation['returnType']>;
389
+ +rendersType: $NonMaybeType<ComponentTypeAnnotation['rendersType']>;
390
390
  }
391
391
  interface ComponentTypeParameter_With_name extends ComponentTypeParameter {
392
392
  +name: $NonMaybeType<ComponentTypeParameter['name']>;
@@ -456,8 +456,8 @@ interface DeclareComponent_With_rest extends DeclareComponent {
456
456
  interface DeclareComponent_With_typeParameters extends DeclareComponent {
457
457
  +typeParameters: $NonMaybeType<DeclareComponent['typeParameters']>;
458
458
  }
459
- interface DeclareComponent_With_returnType extends DeclareComponent {
460
- +returnType: $NonMaybeType<DeclareComponent['returnType']>;
459
+ interface DeclareComponent_With_rendersType extends DeclareComponent {
460
+ +rendersType: $NonMaybeType<DeclareComponent['rendersType']>;
461
461
  }
462
462
  interface DeclaredPredicate_With_value extends DeclaredPredicate {
463
463
  +value: $NonMaybeType<DeclaredPredicate['value']>;
@@ -1324,6 +1324,9 @@ interface TypeParameter_With_variance extends TypeParameter {
1324
1324
  interface TypeParameter_With_default extends TypeParameter {
1325
1325
  +default: $NonMaybeType<TypeParameter['default']>;
1326
1326
  }
1327
+ interface TypeParameter_With_usesExtendsBound extends TypeParameter {
1328
+ +usesExtendsBound: $NonMaybeType<TypeParameter['usesExtendsBound']>;
1329
+ }
1327
1330
  interface TypeParameterDeclaration_With_params
1328
1331
  extends TypeParameterDeclaration {
1329
1332
  +params: $NonMaybeType<TypeParameterDeclaration['params']>;
@@ -1609,8 +1612,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1609
1612
  +'ComponentDeclaration[typeParameters]'?: (
1610
1613
  node: ComponentDeclaration_With_typeParameters,
1611
1614
  ) => void,
1612
- +'ComponentDeclaration[returnType]'?: (
1613
- node: ComponentDeclaration_With_returnType,
1615
+ +'ComponentDeclaration[rendersType]'?: (
1616
+ node: ComponentDeclaration_With_rendersType,
1614
1617
  ) => void,
1615
1618
  +ComponentParameter?: (node: ComponentParameter) => void,
1616
1619
  +'ComponentParameter[name]'?: (node: ComponentParameter_With_name) => void,
@@ -1628,8 +1631,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1628
1631
  +'ComponentTypeAnnotation[typeParameters]'?: (
1629
1632
  node: ComponentTypeAnnotation_With_typeParameters,
1630
1633
  ) => void,
1631
- +'ComponentTypeAnnotation[returnType]'?: (
1632
- node: ComponentTypeAnnotation_With_returnType,
1634
+ +'ComponentTypeAnnotation[rendersType]'?: (
1635
+ node: ComponentTypeAnnotation_With_rendersType,
1633
1636
  ) => void,
1634
1637
  +ComponentTypeParameter?: (node: ComponentTypeParameter) => void,
1635
1638
  +'ComponentTypeParameter[name]'?: (
@@ -1683,8 +1686,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
1683
1686
  +'DeclareComponent[typeParameters]'?: (
1684
1687
  node: DeclareComponent_With_typeParameters,
1685
1688
  ) => void,
1686
- +'DeclareComponent[returnType]'?: (
1687
- node: DeclareComponent_With_returnType,
1689
+ +'DeclareComponent[rendersType]'?: (
1690
+ node: DeclareComponent_With_rendersType,
1688
1691
  ) => void,
1689
1692
  +DeclaredPredicate?: (node: DeclaredPredicate) => void,
1690
1693
  +'DeclaredPredicate[value]'?: (node: DeclaredPredicate_With_value) => void,
@@ -2377,6 +2380,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2377
2380
  +'TypeParameter[bound]'?: (node: TypeParameter_With_bound) => void,
2378
2381
  +'TypeParameter[variance]'?: (node: TypeParameter_With_variance) => void,
2379
2382
  +'TypeParameter[default]'?: (node: TypeParameter_With_default) => void,
2383
+ +'TypeParameter[usesExtendsBound]'?: (
2384
+ node: TypeParameter_With_usesExtendsBound,
2385
+ ) => void,
2380
2386
  +TypeParameterDeclaration?: (node: TypeParameterDeclaration) => void,
2381
2387
  +'TypeParameterDeclaration[params]'?: (
2382
2388
  node: TypeParameterDeclaration_With_params,
@@ -2595,8 +2601,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2595
2601
  +'ComponentDeclaration[typeParameters]:exit'?: (
2596
2602
  node: ComponentDeclaration_With_typeParameters,
2597
2603
  ) => void,
2598
- +'ComponentDeclaration[returnType]:exit'?: (
2599
- node: ComponentDeclaration_With_returnType,
2604
+ +'ComponentDeclaration[rendersType]:exit'?: (
2605
+ node: ComponentDeclaration_With_rendersType,
2600
2606
  ) => void,
2601
2607
  +'ComponentParameter:exit'?: (node: ComponentParameter) => void,
2602
2608
  +'ComponentParameter[name]:exit'?: (
@@ -2618,8 +2624,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2618
2624
  +'ComponentTypeAnnotation[typeParameters]:exit'?: (
2619
2625
  node: ComponentTypeAnnotation_With_typeParameters,
2620
2626
  ) => void,
2621
- +'ComponentTypeAnnotation[returnType]:exit'?: (
2622
- node: ComponentTypeAnnotation_With_returnType,
2627
+ +'ComponentTypeAnnotation[rendersType]:exit'?: (
2628
+ node: ComponentTypeAnnotation_With_rendersType,
2623
2629
  ) => void,
2624
2630
  +'ComponentTypeParameter:exit'?: (node: ComponentTypeParameter) => void,
2625
2631
  +'ComponentTypeParameter[name]:exit'?: (
@@ -2679,8 +2685,8 @@ export type ESQueryNodeSelectorsWithoutFallback = {
2679
2685
  +'DeclareComponent[typeParameters]:exit'?: (
2680
2686
  node: DeclareComponent_With_typeParameters,
2681
2687
  ) => void,
2682
- +'DeclareComponent[returnType]:exit'?: (
2683
- node: DeclareComponent_With_returnType,
2688
+ +'DeclareComponent[rendersType]:exit'?: (
2689
+ node: DeclareComponent_With_rendersType,
2684
2690
  ) => void,
2685
2691
  +'DeclaredPredicate:exit'?: (node: DeclaredPredicate) => void,
2686
2692
  +'DeclaredPredicate[value]:exit'?: (
@@ -3435,6 +3441,9 @@ export type ESQueryNodeSelectorsWithoutFallback = {
3435
3441
  +'TypeParameter[bound]:exit'?: (node: TypeParameter_With_bound) => void,
3436
3442
  +'TypeParameter[variance]:exit'?: (node: TypeParameter_With_variance) => void,
3437
3443
  +'TypeParameter[default]:exit'?: (node: TypeParameter_With_default) => void,
3444
+ +'TypeParameter[usesExtendsBound]:exit'?: (
3445
+ node: TypeParameter_With_usesExtendsBound,
3446
+ ) => void,
3438
3447
  +'TypeParameterDeclaration:exit'?: (node: TypeParameterDeclaration) => void,
3439
3448
  +'TypeParameterDeclaration[params]:exit'?: (
3440
3449
  node: TypeParameterDeclaration_With_params,
@@ -398,7 +398,7 @@ export interface ComponentDeclaration extends BaseNode {
398
398
  +body: BlockStatement;
399
399
  +id: Identifier;
400
400
  +params: $ReadOnlyArray<ComponentParameterAndRestElement>;
401
- +returnType: null | TypeAnnotation;
401
+ +rendersType: null | TypeAnnotation;
402
402
  +typeParameters: null | TypeParameterDeclaration;
403
403
  }
404
404
 
@@ -1349,12 +1349,12 @@ export interface ComponentTypeAnnotation extends BaseNode {
1349
1349
  +params: $ReadOnlyArray<ComponentTypeParameter>;
1350
1350
  +rest: null | ComponentTypeParameter;
1351
1351
  +typeParameters: null | TypeParameterDeclaration;
1352
- +returnType: null | TypeAnnotationType;
1352
+ +rendersType: null | TypeAnnotationType;
1353
1353
  }
1354
1354
  export interface ComponentTypeParameter extends BaseNode {
1355
1355
  +type: 'ComponentTypeParameter';
1356
1356
  +name: Identifier | StringLiteral | null;
1357
- +typeAnnotation: TypeAnnotationType | null;
1357
+ +typeAnnotation: TypeAnnotationType;
1358
1358
  +optional: boolean;
1359
1359
 
1360
1360
  +parent: ComponentTypeAnnotation | DeclareComponent;
@@ -1526,7 +1526,7 @@ export interface TypeParameter extends BaseNode {
1526
1526
  +bound: null | TypeAnnotation;
1527
1527
  +variance: null | Variance;
1528
1528
  +default: null | TypeAnnotationType;
1529
-
1529
+ +usesExtendsBound: boolean;
1530
1530
  +parent: TypeParameterDeclaration;
1531
1531
  }
1532
1532
  export interface TypeParameterInstantiation extends BaseNode {
@@ -1647,7 +1647,7 @@ export interface DeclareComponent extends BaseNode {
1647
1647
  +params: Array<ComponentTypeParameter>;
1648
1648
  +rest: null | ComponentTypeParameter;
1649
1649
  +typeParameters: null | TypeParameterDeclaration;
1650
- +returnType: null | TypeAnnotation;
1650
+ +rendersType: null | TypeAnnotation;
1651
1651
  }
1652
1652
 
1653
1653
  export interface DeclareVariable extends BaseNode {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-estree",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Flow types for the Flow-ESTree spec produced by the hermes parser",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",