@@ -548,8 +548,6 @@ function undefineIfEmpty<T>(arr: ?$ReadOnlyArray<T>): ?$ReadOnlyArray<T> {
548
548
return arr && arr . length > 0 ? arr : undefined ;
549
549
}
550
550
551
- export type GraphQLScalarTypeExtensions = ReadOnlyObjMap < mixed > ;
552
-
553
551
/**
554
552
* Scalar Type Definition
555
553
*
@@ -581,7 +579,7 @@ export class GraphQLScalarType {
581
579
serialize : GraphQLScalarSerializer < mixed > ;
582
580
parseValue : GraphQLScalarValueParser < mixed > ;
583
581
parseLiteral : GraphQLScalarLiteralParser < mixed > ;
584
- extensions : ?GraphQLScalarTypeExtensions ;
582
+ extensions : ?ReadOnlyObjMap < mixed > ;
585
583
astNode : ?ScalarTypeDefinitionNode ;
586
584
extensionASTNodes : ?$ReadOnlyArray < ScalarTypeExtensionNode > ;
587
585
@@ -626,7 +624,7 @@ export class GraphQLScalarType {
626
624
serialize: GraphQLScalarSerializer<mixed>,
627
625
parseValue: GraphQLScalarValueParser<mixed>,
628
626
parseLiteral: GraphQLScalarLiteralParser<mixed>,
629
- extensions: ?GraphQLScalarTypeExtensions ,
627
+ extensions: ?ReadOnlyObjMap<mixed> ,
630
628
extensionASTNodes: $ReadOnlyArray<ScalarTypeExtensionNode>,
631
629
|} {
632
630
return {
@@ -682,13 +680,11 @@ export type GraphQLScalarTypeConfig<TInternal, TExternal> = {|
682
680
parseValue?: GraphQLScalarValueParser<TInternal>,
683
681
// Parses an externally provided literal value to use as an input.
684
682
parseLiteral?: GraphQLScalarLiteralParser<TInternal>,
685
- extensions?: ?GraphQLScalarTypeExtensions ,
683
+ extensions?: ?ReadOnlyObjMapLike<mixed> ,
686
684
astNode?: ?ScalarTypeDefinitionNode,
687
685
extensionASTNodes?: ?$ReadOnlyArray<ScalarTypeExtensionNode>,
688
686
|};
689
687
690
- export type GraphQLObjectTypeExtensions = ReadOnlyObjMap<mixed>;
691
-
692
688
/**
693
689
* Object Type Definition
694
690
*
@@ -730,7 +726,7 @@ export class GraphQLObjectType {
730
726
name: string;
731
727
description: ?string;
732
728
isTypeOf: ?GraphQLIsTypeOfFn<any, any>;
733
- extensions: ?GraphQLObjectTypeExtensions ;
729
+ extensions: ?ReadOnlyObjMap<mixed> ;
734
730
astNode: ?ObjectTypeDefinitionNode;
735
731
extensionASTNodes: ?$ReadOnlyArray<ObjectTypeExtensionNode>;
736
732
@@ -773,7 +769,7 @@ export class GraphQLObjectType {
773
769
...GraphQLObjectTypeConfig < any , any > ,
774
770
interfaces : Array < GraphQLInterfaceType > ,
775
771
fields : GraphQLFieldConfigMap < any , any > ,
776
- extensions : ?GraphQLObjectTypeExtensions ,
772
+ extensions : ?ReadOnlyObjMap < mixed > ,
777
773
extensionASTNodes : $ReadOnlyArray < ObjectTypeExtensionNode > ,
778
774
| } {
779
775
return {
@@ -918,7 +914,7 @@ export type GraphQLObjectTypeConfig<TSource, TContext> = {|
918
914
interfaces ?: Thunk < ?Array < GraphQLInterfaceType >> ,
919
915
fields : Thunk < GraphQLFieldConfigMap < TSource , TContext> > ,
920
916
isTypeOf ?: ?GraphQLIsTypeOfFn < TSource , TContext> ,
921
- extensions ?: ?GraphQLObjectTypeExtensions ,
917
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
922
918
astNode ?: ?ObjectTypeDefinitionNode ,
923
919
extensionASTNodes ?: ?$ReadOnlyArray < ObjectTypeExtensionNode > ,
924
920
| } ;
@@ -971,7 +967,7 @@ export type GraphQLFieldConfig<
971
967
resolve ?: GraphQLFieldResolver < TSource , TContext, TArgs> ,
972
968
subscribe ?: GraphQLFieldResolver < TSource , TContext, TArgs> ,
973
969
deprecationReason ?: ?string ,
974
- extensions ?: ?GraphQLFieldExtensions ,
970
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
975
971
astNode ?: ?FieldDefinitionNode ,
976
972
| } ;
977
973
@@ -981,16 +977,14 @@ export type GraphQLArgumentConfig = {|
981
977
description ?: ?string ,
982
978
type : GraphQLInputType ,
983
979
defaultValue ?: mixed ,
984
- extensions ?: ?GraphQLArgumentExtensions ,
980
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
985
981
astNode ?: ?InputValueDefinitionNode ,
986
982
| } ;
987
983
988
984
export type GraphQLFieldConfigMap < TSource , TContext > = ObjMap <
989
985
GraphQLFieldConfig < TSource , TContext > ,
990
986
> ;
991
987
992
- export type GraphQLFieldExtensions = ReadOnlyObjMap < mixed > ;
993
-
994
988
export type GraphQLField <
995
989
TSource ,
996
990
TContext,
@@ -1004,18 +998,16 @@ export type GraphQLField<
1004
998
subscribe ?: GraphQLFieldResolver < TSource , TContext, TArgs> ,
1005
999
isDeprecated : boolean ,
1006
1000
deprecationReason : ?string ,
1007
- extensions : ?GraphQLFieldExtensions ,
1001
+ extensions : ?ReadOnlyObjMap < mixed > ,
1008
1002
astNode : ?FieldDefinitionNode ,
1009
1003
| } ;
1010
1004
1011
- export type GraphQLArgumentExtensions = ReadOnlyObjMap < mixed > ;
1012
-
1013
1005
export type GraphQLArgument = { |
1014
1006
name : string ,
1015
1007
description : ?string ,
1016
1008
type : GraphQLInputType ,
1017
1009
defaultValue : mixed ,
1018
- extensions : ?GraphQLArgumentExtensions ,
1010
+ extensions : ?ReadOnlyObjMap < mixed > ,
1019
1011
astNode : ?InputValueDefinitionNode ,
1020
1012
| } ;
1021
1013
@@ -1027,8 +1019,6 @@ export type GraphQLFieldMap<TSource, TContext> = ObjMap<
1027
1019
GraphQLField < TSource, TContext> ,
1028
1020
> ;
1029
1021
1030
- export type GraphQLInterfaceTypeExtensions = ReadOnlyObjMap < mixed > ;
1031
-
1032
1022
/**
1033
1023
* Interface Type Definition
1034
1024
*
@@ -1051,7 +1041,7 @@ export class GraphQLInterfaceType {
1051
1041
name : string ;
1052
1042
description : ?string ;
1053
1043
resolveType : ?GraphQLTypeResolver < any , any > ;
1054
- extensions : ?GraphQLInterfaceTypeExtensions ;
1044
+ extensions : ?ReadOnlyObjMap < mixed > ;
1055
1045
astNode : ?InterfaceTypeDefinitionNode ;
1056
1046
extensionASTNodes : ?$ReadOnlyArray < InterfaceTypeExtensionNode > ;
1057
1047
@@ -1094,7 +1084,7 @@ export class GraphQLInterfaceType {
1094
1084
...GraphQLInterfaceTypeConfig < any , any > ,
1095
1085
interfaces : Array < GraphQLInterfaceType > ,
1096
1086
fields : GraphQLFieldConfigMap < any , any > ,
1097
- extensions : ?GraphQLInterfaceTypeExtensions ,
1087
+ extensions : ?ReadOnlyObjMap < mixed > ,
1098
1088
extensionASTNodes : $ReadOnlyArray < InterfaceTypeExtensionNode > ,
1099
1089
| } {
1100
1090
return {
@@ -1137,13 +1127,11 @@ export type GraphQLInterfaceTypeConfig<TSource, TContext> = {|
1137
1127
* Object type.
1138
1128
*/
1139
1129
resolveType ?: ?GraphQLTypeResolver < TSource , TContext> ,
1140
- extensions ?: ?GraphQLInterfaceTypeExtensions ,
1130
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1141
1131
astNode ?: ?InterfaceTypeDefinitionNode ,
1142
1132
extensionASTNodes ?: ?$ReadOnlyArray < InterfaceTypeExtensionNode > ,
1143
1133
| } ;
1144
1134
1145
- export type GraphQLUnionTypeExtensions = ReadOnlyObjMap < mixed > ;
1146
-
1147
1135
/**
1148
1136
* Union Type Definition
1149
1137
*
@@ -1171,7 +1159,7 @@ export class GraphQLUnionType {
1171
1159
name : string ;
1172
1160
description : ?string ;
1173
1161
resolveType : ?GraphQLTypeResolver < any , any > ;
1174
- extensions : ?GraphQLUnionTypeExtensions ;
1162
+ extensions : ?ReadOnlyObjMap < mixed > ;
1175
1163
astNode : ?UnionTypeDefinitionNode ;
1176
1164
extensionASTNodes : ?$ReadOnlyArray < UnionTypeExtensionNode > ;
1177
1165
@@ -1204,7 +1192,7 @@ export class GraphQLUnionType {
1204
1192
toConfig ( ) : { |
1205
1193
...GraphQLUnionTypeConfig < any , any > ,
1206
1194
types : Array < GraphQLObjectType > ,
1207
- extensions : ?GraphQLUnionTypeExtensions ,
1195
+ extensions : ?ReadOnlyObjMap < mixed > ,
1208
1196
extensionASTNodes : $ReadOnlyArray < UnionTypeExtensionNode > ,
1209
1197
| } {
1210
1198
return {
@@ -1256,13 +1244,11 @@ export type GraphQLUnionTypeConfig<TSource, TContext> = {|
1256
1244
* Object type.
1257
1245
*/
1258
1246
resolveType ?: ?GraphQLTypeResolver < TSource , TContext> ,
1259
- extensions ?: ?GraphQLUnionTypeExtensions ,
1247
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1260
1248
astNode ?: ?UnionTypeDefinitionNode ,
1261
1249
extensionASTNodes ?: ?$ReadOnlyArray < UnionTypeExtensionNode > ,
1262
1250
| } ;
1263
1251
1264
- export type GraphQLEnumTypeExtensions = ReadOnlyObjMap < mixed > ;
1265
-
1266
1252
/**
1267
1253
* Enum Type Definition
1268
1254
*
@@ -1287,7 +1273,7 @@ export type GraphQLEnumTypeExtensions = ReadOnlyObjMap<mixed>;
1287
1273
export class GraphQLEnumType /* <T> */ {
1288
1274
name : string ;
1289
1275
description : ?string ;
1290
- extensions : ?GraphQLEnumTypeExtensions ;
1276
+ extensions : ?ReadOnlyObjMap < mixed > ;
1291
1277
astNode : ?EnumTypeDefinitionNode ;
1292
1278
extensionASTNodes : ?$ReadOnlyArray < EnumTypeExtensionNode > ;
1293
1279
@@ -1373,7 +1359,7 @@ export class GraphQLEnumType /* <T> */ {
1373
1359
1374
1360
toConfig ( ) : { |
1375
1361
...GraphQLEnumTypeConfig ,
1376
- extensions : ?GraphQLEnumTypeExtensions ,
1362
+ extensions : ?ReadOnlyObjMap < mixed > ,
1377
1363
extensionASTNodes : $ReadOnlyArray < EnumTypeExtensionNode > ,
1378
1364
| } {
1379
1365
const values = keyValMap (
@@ -1459,7 +1445,7 @@ export type GraphQLEnumTypeConfig /* <T> */ = {|
1459
1445
name : string ,
1460
1446
description ?: ?string ,
1461
1447
values : GraphQLEnumValueConfigMap /* <T> */ ,
1462
- extensions ?: ?GraphQLEnumTypeExtensions ,
1448
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1463
1449
astNode ?: ?EnumTypeDefinitionNode ,
1464
1450
extensionASTNodes ?: ?$ReadOnlyArray < EnumTypeExtensionNode > ,
1465
1451
| } ;
@@ -1470,24 +1456,20 @@ export type GraphQLEnumValueConfig /* <T> */ = {|
1470
1456
description ?: ?string ,
1471
1457
value ?: any /* T */ ,
1472
1458
deprecationReason ?: ?string ,
1473
- extensions ?: ?GraphQLEnumValueExtensions ,
1459
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1474
1460
astNode ?: ?EnumValueDefinitionNode ,
1475
1461
| } ;
1476
1462
1477
- export type GraphQLEnumValueExtensions = ReadOnlyObjMap < mixed > ;
1478
-
1479
1463
export type GraphQLEnumValue /* <T> */ = { |
1480
1464
name : string ,
1481
1465
description : ?string ,
1482
1466
value : any /* T */ ,
1483
1467
isDeprecated : boolean ,
1484
1468
deprecationReason : ?string ,
1485
- extensions : ?GraphQLEnumValueExtensions ,
1469
+ extensions : ?ReadOnlyObjMap < mixed > ,
1486
1470
astNode : ?EnumValueDefinitionNode ,
1487
1471
| } ;
1488
1472
1489
- export type GraphQLInputObjectTypeExtensions = ReadOnlyObjMap < mixed > ;
1490
-
1491
1473
/**
1492
1474
* Input Object Type Definition
1493
1475
*
@@ -1511,7 +1493,7 @@ export type GraphQLInputObjectTypeExtensions = ReadOnlyObjMap<mixed>;
1511
1493
export class GraphQLInputObjectType {
1512
1494
name : string ;
1513
1495
description : ?string ;
1514
- extensions : ?GraphQLInputObjectTypeExtensions ;
1496
+ extensions : ?ReadOnlyObjMap < mixed > ;
1515
1497
astNode : ?InputObjectTypeDefinitionNode ;
1516
1498
extensionASTNodes : ?$ReadOnlyArray < InputObjectTypeExtensionNode > ;
1517
1499
@@ -1538,7 +1520,7 @@ export class GraphQLInputObjectType {
1538
1520
toConfig ( ) : { |
1539
1521
...GraphQLInputObjectTypeConfig ,
1540
1522
fields : GraphQLInputFieldConfigMap ,
1541
- extensions : ?GraphQLInputObjectTypeExtensions ,
1523
+ extensions : ?ReadOnlyObjMap < mixed > ,
1542
1524
extensionASTNodes : $ReadOnlyArray < InputObjectTypeExtensionNode > ,
1543
1525
| } {
1544
1526
const fields = mapValue ( this . getFields ( ) , ( field ) => ( {
@@ -1605,7 +1587,7 @@ export type GraphQLInputObjectTypeConfig = {|
1605
1587
name : string ,
1606
1588
description ?: ?string ,
1607
1589
fields : Thunk < GraphQLInputFieldConfigMap > ,
1608
- extensions ?: ?GraphQLInputObjectTypeExtensions ,
1590
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1609
1591
astNode ?: ?InputObjectTypeDefinitionNode ,
1610
1592
extensionASTNodes ?: ?$ReadOnlyArray < InputObjectTypeExtensionNode > ,
1611
1593
| } ;
@@ -1614,20 +1596,18 @@ export type GraphQLInputFieldConfig = {|
1614
1596
description ?: ?string ,
1615
1597
type : GraphQLInputType ,
1616
1598
defaultValue ?: mixed ,
1617
- extensions ?: ?GraphQLInputFieldExtensions ,
1599
+ extensions ?: ?ReadOnlyObjMapLike < mixed > ,
1618
1600
astNode ?: ?InputValueDefinitionNode ,
1619
1601
| } ;
1620
1602
1621
1603
export type GraphQLInputFieldConfigMap = ObjMap < GraphQLInputFieldConfig > ;
1622
1604
1623
- export type GraphQLInputFieldExtensions = ReadOnlyObjMap < mixed > ;
1624
-
1625
1605
export type GraphQLInputField = { |
1626
1606
name : string ,
1627
1607
description : ?string ,
1628
1608
type : GraphQLInputType ,
1629
1609
defaultValue : mixed ,
1630
- extensions : ?GraphQLInputFieldExtensions ,
1610
+ extensions : ?ReadOnlyObjMap < mixed > ,
1631
1611
astNode : ?InputValueDefinitionNode ,
1632
1612
| } ;
1633
1613
0 commit comments