@@ -738,7 +738,7 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
738
738
extensionASTNodes ?: Maybe < ReadonlyArray < ScalarTypeExtensionNode > > ;
739
739
}
740
740
741
- interface GraphQLScalarTypeNormalizedConfig < TInternal , TExternal >
741
+ export interface GraphQLScalarTypeNormalizedConfig < TInternal , TExternal >
742
742
extends GraphQLScalarTypeConfig < TInternal , TExternal > {
743
743
serialize : GraphQLScalarSerializer < TExternal > ;
744
744
parseValue : GraphQLScalarValueParser < TInternal > ;
@@ -914,7 +914,7 @@ export function defineArguments(
914
914
915
915
function fieldsToFieldsConfig < TSource , TContext > (
916
916
fields : GraphQLFieldMap < TSource , TContext > ,
917
- ) : GraphQLFieldConfigMap < TSource , TContext > {
917
+ ) : GraphQLFieldNormalizedConfigMap < TSource , TContext > {
918
918
return mapValue ( fields , ( field ) => ( {
919
919
description : field . description ,
920
920
type : field . type ,
@@ -932,7 +932,7 @@ function fieldsToFieldsConfig<TSource, TContext>(
932
932
*/
933
933
export function argsToArgsConfig (
934
934
args : ReadonlyArray < GraphQLArgument > ,
935
- ) : GraphQLFieldConfigArgumentMap {
935
+ ) : GraphQLFieldNormalizedConfigArgumentMap {
936
936
return keyValMap (
937
937
args ,
938
938
( arg ) => arg . name ,
@@ -959,10 +959,10 @@ export interface GraphQLObjectTypeConfig<TSource, TContext> {
959
959
extensionASTNodes ?: Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
960
960
}
961
961
962
- interface GraphQLObjectTypeNormalizedConfig < TSource , TContext >
962
+ export interface GraphQLObjectTypeNormalizedConfig < TSource , TContext >
963
963
extends GraphQLObjectTypeConfig < any , any > {
964
964
interfaces : ReadonlyArray < GraphQLInterfaceType > ;
965
- fields : GraphQLFieldConfigMap < any , any > ;
965
+ fields : GraphQLFieldNormalizedConfigMap < any , any > ;
966
966
extensions : Readonly < GraphQLObjectTypeExtensions < TSource , TContext > > ;
967
967
extensionASTNodes : ReadonlyArray < ObjectTypeExtensionNode > ;
968
968
}
@@ -1035,8 +1035,17 @@ export interface GraphQLFieldConfig<TSource, TContext, TArgs = any> {
1035
1035
astNode ?: Maybe < FieldDefinitionNode > ;
1036
1036
}
1037
1037
1038
+ export interface GraphQLFieldNormalizedConfig < TSource , TContext , TArgs = any >
1039
+ extends GraphQLFieldConfig < TSource , TContext , TArgs > {
1040
+ args : GraphQLFieldNormalizedConfigArgumentMap ;
1041
+ extensions : Readonly < GraphQLFieldExtensions < TSource , TContext , TArgs > > ;
1042
+ }
1043
+
1038
1044
export type GraphQLFieldConfigArgumentMap = ObjMap < GraphQLArgumentConfig > ;
1039
1045
1046
+ export type GraphQLFieldNormalizedConfigArgumentMap =
1047
+ ObjMap < GraphQLArgumentNormalizedConfig > ;
1048
+
1040
1049
/**
1041
1050
* Custom extensions
1042
1051
*
@@ -1060,10 +1069,18 @@ export interface GraphQLArgumentConfig {
1060
1069
astNode ?: Maybe < InputValueDefinitionNode > ;
1061
1070
}
1062
1071
1072
+ export interface GraphQLArgumentNormalizedConfig extends GraphQLArgumentConfig {
1073
+ extensions : Readonly < GraphQLArgumentExtensions > ;
1074
+ }
1075
+
1063
1076
export type GraphQLFieldConfigMap < TSource , TContext > = ObjMap <
1064
1077
GraphQLFieldConfig < TSource , TContext >
1065
1078
> ;
1066
1079
1080
+ export type GraphQLFieldNormalizedConfigMap < TSource , TContext > = ObjMap <
1081
+ GraphQLFieldNormalizedConfig < TSource , TContext >
1082
+ > ;
1083
+
1067
1084
export interface GraphQLField < TSource , TContext , TArgs = any > {
1068
1085
name : string ;
1069
1086
description : Maybe < string > ;
@@ -1229,10 +1246,10 @@ export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
1229
1246
extensionASTNodes ?: Maybe < ReadonlyArray < InterfaceTypeExtensionNode > > ;
1230
1247
}
1231
1248
1232
- interface GraphQLInterfaceTypeNormalizedConfig < TSource , TContext >
1249
+ export interface GraphQLInterfaceTypeNormalizedConfig < TSource , TContext >
1233
1250
extends GraphQLInterfaceTypeConfig < any , any > {
1234
1251
interfaces : ReadonlyArray < GraphQLInterfaceType > ;
1235
- fields : GraphQLFieldConfigMap < TSource , TContext > ;
1252
+ fields : GraphQLFieldNormalizedConfigMap < TSource , TContext > ;
1236
1253
extensions : Readonly < GraphQLInterfaceTypeExtensions > ;
1237
1254
extensionASTNodes : ReadonlyArray < InterfaceTypeExtensionNode > ;
1238
1255
}
@@ -1348,7 +1365,7 @@ export interface GraphQLUnionTypeConfig<TSource, TContext> {
1348
1365
extensionASTNodes ?: Maybe < ReadonlyArray < UnionTypeExtensionNode > > ;
1349
1366
}
1350
1367
1351
- interface GraphQLUnionTypeNormalizedConfig
1368
+ export interface GraphQLUnionTypeNormalizedConfig
1352
1369
extends GraphQLUnionTypeConfig < any , any > {
1353
1370
types : ReadonlyArray < GraphQLObjectType > ;
1354
1371
extensions : Readonly < GraphQLUnionTypeExtensions > ;
@@ -1594,15 +1611,18 @@ export interface GraphQLEnumTypeConfig {
1594
1611
extensionASTNodes ?: Maybe < ReadonlyArray < EnumTypeExtensionNode > > ;
1595
1612
}
1596
1613
1597
- interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
1598
- values : ObjMap < GraphQLEnumValueConfig /* <T> */ > ;
1614
+ export interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
1615
+ values : GraphQLEnumValueNormalizedConfigMap ;
1599
1616
extensions : Readonly < GraphQLEnumTypeExtensions > ;
1600
1617
extensionASTNodes : ReadonlyArray < EnumTypeExtensionNode > ;
1601
1618
}
1602
1619
1603
1620
export type GraphQLEnumValueConfigMap /* <T> */ =
1604
1621
ObjMap < GraphQLEnumValueConfig /* <T> */ > ;
1605
1622
1623
+ export type GraphQLEnumValueNormalizedConfigMap /* <T> */ =
1624
+ ObjMap < GraphQLEnumValueNormalizedConfig /* <T> */ > ;
1625
+
1606
1626
/**
1607
1627
* Custom extensions
1608
1628
*
@@ -1624,6 +1644,11 @@ export interface GraphQLEnumValueConfig {
1624
1644
astNode ?: Maybe < EnumValueDefinitionNode > ;
1625
1645
}
1626
1646
1647
+ export interface GraphQLEnumValueNormalizedConfig
1648
+ extends GraphQLEnumValueConfig {
1649
+ extensions : Readonly < GraphQLEnumValueExtensions > ;
1650
+ }
1651
+
1627
1652
export interface GraphQLEnumValue {
1628
1653
name : string ;
1629
1654
description : Maybe < string > ;
@@ -1755,9 +1780,9 @@ export interface GraphQLInputObjectTypeConfig {
1755
1780
isOneOf ?: boolean ;
1756
1781
}
1757
1782
1758
- interface GraphQLInputObjectTypeNormalizedConfig
1783
+ export interface GraphQLInputObjectTypeNormalizedConfig
1759
1784
extends GraphQLInputObjectTypeConfig {
1760
- fields : GraphQLInputFieldConfigMap ;
1785
+ fields : GraphQLInputFieldNormalizedConfigMap ;
1761
1786
extensions : Readonly < GraphQLInputObjectTypeExtensions > ;
1762
1787
extensionASTNodes : ReadonlyArray < InputObjectTypeExtensionNode > ;
1763
1788
}
@@ -1787,6 +1812,14 @@ export interface GraphQLInputFieldConfig {
1787
1812
1788
1813
export type GraphQLInputFieldConfigMap = ObjMap < GraphQLInputFieldConfig > ;
1789
1814
1815
+ export interface GraphQLInputFieldNormalizedConfig
1816
+ extends GraphQLInputFieldConfig {
1817
+ extensions : Readonly < GraphQLInputFieldExtensions > ;
1818
+ }
1819
+
1820
+ export type GraphQLInputFieldNormalizedConfigMap =
1821
+ ObjMap < GraphQLInputFieldNormalizedConfig > ;
1822
+
1790
1823
export interface GraphQLInputField {
1791
1824
name : string ;
1792
1825
description : Maybe < string > ;
0 commit comments