@@ -738,7 +738,7 @@ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
738738 extensionASTNodes ?: Maybe < ReadonlyArray < ScalarTypeExtensionNode > > ;
739739}
740740
741- interface GraphQLScalarTypeNormalizedConfig < TInternal , TExternal >
741+ export interface GraphQLScalarTypeNormalizedConfig < TInternal , TExternal >
742742 extends GraphQLScalarTypeConfig < TInternal , TExternal > {
743743 serialize : GraphQLScalarSerializer < TExternal > ;
744744 parseValue : GraphQLScalarValueParser < TInternal > ;
@@ -914,7 +914,7 @@ export function defineArguments(
914914
915915function fieldsToFieldsConfig < TSource , TContext > (
916916 fields : GraphQLFieldMap < TSource , TContext > ,
917- ) : GraphQLFieldConfigMap < TSource , TContext > {
917+ ) : GraphQLFieldNormalizedConfigMap < TSource , TContext > {
918918 return mapValue ( fields , ( field ) => ( {
919919 description : field . description ,
920920 type : field . type ,
@@ -932,7 +932,7 @@ function fieldsToFieldsConfig<TSource, TContext>(
932932 */
933933export function argsToArgsConfig (
934934 args : ReadonlyArray < GraphQLArgument > ,
935- ) : GraphQLFieldConfigArgumentMap {
935+ ) : GraphQLFieldNormalizedConfigArgumentMap {
936936 return keyValMap (
937937 args ,
938938 ( arg ) => arg . name ,
@@ -959,10 +959,10 @@ export interface GraphQLObjectTypeConfig<TSource, TContext> {
959959 extensionASTNodes ?: Maybe < ReadonlyArray < ObjectTypeExtensionNode > > ;
960960}
961961
962- interface GraphQLObjectTypeNormalizedConfig < TSource , TContext >
962+ export interface GraphQLObjectTypeNormalizedConfig < TSource , TContext >
963963 extends GraphQLObjectTypeConfig < any , any > {
964964 interfaces : ReadonlyArray < GraphQLInterfaceType > ;
965- fields : GraphQLFieldConfigMap < any , any > ;
965+ fields : GraphQLFieldNormalizedConfigMap < any , any > ;
966966 extensions : Readonly < GraphQLObjectTypeExtensions < TSource , TContext > > ;
967967 extensionASTNodes : ReadonlyArray < ObjectTypeExtensionNode > ;
968968}
@@ -1035,8 +1035,17 @@ export interface GraphQLFieldConfig<TSource, TContext, TArgs = any> {
10351035 astNode ?: Maybe < FieldDefinitionNode > ;
10361036}
10371037
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+
10381044export type GraphQLFieldConfigArgumentMap = ObjMap < GraphQLArgumentConfig > ;
10391045
1046+ export type GraphQLFieldNormalizedConfigArgumentMap =
1047+ ObjMap < GraphQLArgumentNormalizedConfig > ;
1048+
10401049/**
10411050 * Custom extensions
10421051 *
@@ -1060,10 +1069,18 @@ export interface GraphQLArgumentConfig {
10601069 astNode ?: Maybe < InputValueDefinitionNode > ;
10611070}
10621071
1072+ export interface GraphQLArgumentNormalizedConfig extends GraphQLArgumentConfig {
1073+ extensions : Readonly < GraphQLArgumentExtensions > ;
1074+ }
1075+
10631076export type GraphQLFieldConfigMap < TSource , TContext > = ObjMap <
10641077 GraphQLFieldConfig < TSource , TContext >
10651078> ;
10661079
1080+ export type GraphQLFieldNormalizedConfigMap < TSource , TContext > = ObjMap <
1081+ GraphQLFieldNormalizedConfig < TSource , TContext >
1082+ > ;
1083+
10671084export interface GraphQLField < TSource , TContext , TArgs = any > {
10681085 name : string ;
10691086 description : Maybe < string > ;
@@ -1229,10 +1246,10 @@ export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
12291246 extensionASTNodes ?: Maybe < ReadonlyArray < InterfaceTypeExtensionNode > > ;
12301247}
12311248
1232- interface GraphQLInterfaceTypeNormalizedConfig < TSource , TContext >
1249+ export interface GraphQLInterfaceTypeNormalizedConfig < TSource , TContext >
12331250 extends GraphQLInterfaceTypeConfig < any , any > {
12341251 interfaces : ReadonlyArray < GraphQLInterfaceType > ;
1235- fields : GraphQLFieldConfigMap < TSource , TContext > ;
1252+ fields : GraphQLFieldNormalizedConfigMap < TSource , TContext > ;
12361253 extensions : Readonly < GraphQLInterfaceTypeExtensions > ;
12371254 extensionASTNodes : ReadonlyArray < InterfaceTypeExtensionNode > ;
12381255}
@@ -1348,7 +1365,7 @@ export interface GraphQLUnionTypeConfig<TSource, TContext> {
13481365 extensionASTNodes ?: Maybe < ReadonlyArray < UnionTypeExtensionNode > > ;
13491366}
13501367
1351- interface GraphQLUnionTypeNormalizedConfig
1368+ export interface GraphQLUnionTypeNormalizedConfig
13521369 extends GraphQLUnionTypeConfig < any , any > {
13531370 types : ReadonlyArray < GraphQLObjectType > ;
13541371 extensions : Readonly < GraphQLUnionTypeExtensions > ;
@@ -1594,15 +1611,18 @@ export interface GraphQLEnumTypeConfig {
15941611 extensionASTNodes ?: Maybe < ReadonlyArray < EnumTypeExtensionNode > > ;
15951612}
15961613
1597- interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
1598- values : ObjMap < GraphQLEnumValueConfig /* <T> */ > ;
1614+ export interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
1615+ values : GraphQLEnumValueNormalizedConfigMap ;
15991616 extensions : Readonly < GraphQLEnumTypeExtensions > ;
16001617 extensionASTNodes : ReadonlyArray < EnumTypeExtensionNode > ;
16011618}
16021619
16031620export type GraphQLEnumValueConfigMap /* <T> */ =
16041621 ObjMap < GraphQLEnumValueConfig /* <T> */ > ;
16051622
1623+ export type GraphQLEnumValueNormalizedConfigMap /* <T> */ =
1624+ ObjMap < GraphQLEnumValueNormalizedConfig /* <T> */ > ;
1625+
16061626/**
16071627 * Custom extensions
16081628 *
@@ -1624,6 +1644,11 @@ export interface GraphQLEnumValueConfig {
16241644 astNode ?: Maybe < EnumValueDefinitionNode > ;
16251645}
16261646
1647+ export interface GraphQLEnumValueNormalizedConfig
1648+ extends GraphQLEnumValueConfig {
1649+ extensions : Readonly < GraphQLEnumValueExtensions > ;
1650+ }
1651+
16271652export interface GraphQLEnumValue {
16281653 name : string ;
16291654 description : Maybe < string > ;
@@ -1755,9 +1780,9 @@ export interface GraphQLInputObjectTypeConfig {
17551780 isOneOf ?: boolean ;
17561781}
17571782
1758- interface GraphQLInputObjectTypeNormalizedConfig
1783+ export interface GraphQLInputObjectTypeNormalizedConfig
17591784 extends GraphQLInputObjectTypeConfig {
1760- fields : GraphQLInputFieldConfigMap ;
1785+ fields : GraphQLInputFieldNormalizedConfigMap ;
17611786 extensions : Readonly < GraphQLInputObjectTypeExtensions > ;
17621787 extensionASTNodes : ReadonlyArray < InputObjectTypeExtensionNode > ;
17631788}
@@ -1787,6 +1812,14 @@ export interface GraphQLInputFieldConfig {
17871812
17881813export type GraphQLInputFieldConfigMap = ObjMap < GraphQLInputFieldConfig > ;
17891814
1815+ export interface GraphQLInputFieldNormalizedConfig
1816+ extends GraphQLInputFieldConfig {
1817+ extensions : Readonly < GraphQLInputFieldExtensions > ;
1818+ }
1819+
1820+ export type GraphQLInputFieldNormalizedConfigMap =
1821+ ObjMap < GraphQLInputFieldNormalizedConfig > ;
1822+
17901823export interface GraphQLInputField {
17911824 name : string ;
17921825 description : Maybe < string > ;
0 commit comments