@@ -336,7 +336,7 @@ export type GraphQLScalarValueParser<TInternal> = (
336
336
) => Maybe < TInternal > ;
337
337
export type GraphQLScalarLiteralParser < TInternal > = (
338
338
valueNode : ValueNode ,
339
- variables : Maybe < { [ key : string ] : unknown } > ,
339
+ variables : Maybe < ObjMap < unknown > > ,
340
340
) => Maybe < TInternal > ;
341
341
342
342
export interface GraphQLScalarTypeConfig < TInternal , TExternal > {
@@ -479,7 +479,7 @@ export interface GraphQLResolveInfo {
479
479
readonly parentType : GraphQLObjectType ;
480
480
readonly path : Path ;
481
481
readonly schema : GraphQLSchema ;
482
- readonly fragments : { [ key : string ] : FragmentDefinitionNode } ;
482
+ readonly fragments : ObjMap < FragmentDefinitionNode > ;
483
483
readonly rootValue : unknown ;
484
484
readonly operation : OperationDefinitionNode ;
485
485
readonly variableValues : { [ variableName : string ] : unknown } ;
@@ -522,9 +522,7 @@ export interface GraphQLFieldConfig<
522
522
astNode ?: Maybe < FieldDefinitionNode > ;
523
523
}
524
524
525
- export interface GraphQLFieldConfigArgumentMap {
526
- [ key : string ] : GraphQLArgumentConfig ;
527
- }
525
+ export type GraphQLFieldConfigArgumentMap = ObjMap < GraphQLArgumentConfig > ;
528
526
529
527
/**
530
528
* Custom extensions
@@ -548,9 +546,9 @@ export interface GraphQLArgumentConfig {
548
546
astNode ?: Maybe < InputValueDefinitionNode > ;
549
547
}
550
548
551
- export interface GraphQLFieldConfigMap < TSource , TContext > {
552
- [ key : string ] : GraphQLFieldConfig < TSource , TContext > ;
553
- }
549
+ export type GraphQLFieldConfigMap < TSource , TContext > = ObjMap <
550
+ GraphQLFieldConfig < TSource , TContext >
551
+ > ;
554
552
555
553
export interface GraphQLField <
556
554
TSource ,
@@ -580,9 +578,9 @@ export interface GraphQLArgument {
580
578
581
579
export function isRequiredArgument ( arg : GraphQLArgument ) : boolean ;
582
580
583
- export interface GraphQLFieldMap < TSource , TContext > {
584
- [ key : string ] : GraphQLField < TSource , TContext > ;
585
- }
581
+ export type GraphQLFieldMap < TSource , TContext > = ObjMap <
582
+ GraphQLField < TSource , TContext >
583
+ > ;
586
584
587
585
/**
588
586
* Custom extensions
@@ -778,7 +776,7 @@ export class GraphQLEnumType {
778
776
parseValue ( value : unknown ) : Maybe < any > ;
779
777
parseLiteral (
780
778
valueNode : ValueNode ,
781
- _variables : Maybe < { [ key : string ] : unknown } > ,
779
+ _variables : Maybe < ObjMap < unknown > > ,
782
780
) : Maybe < any > ;
783
781
784
782
toConfig ( ) : GraphQLEnumTypeConfig & {
@@ -801,9 +799,7 @@ export interface GraphQLEnumTypeConfig {
801
799
extensionASTNodes ?: Maybe < ReadonlyArray < EnumTypeExtensionNode > > ;
802
800
}
803
801
804
- export interface GraphQLEnumValueConfigMap {
805
- [ key : string ] : GraphQLEnumValueConfig ;
806
- }
802
+ export type GraphQLEnumValueConfigMap = ObjMap < GraphQLEnumValueConfig > ;
807
803
808
804
/**
809
805
* Custom extensions
@@ -921,9 +917,7 @@ export interface GraphQLInputFieldConfig {
921
917
astNode ?: Maybe < InputValueDefinitionNode > ;
922
918
}
923
919
924
- export interface GraphQLInputFieldConfigMap {
925
- [ key : string ] : GraphQLInputFieldConfig ;
926
- }
920
+ export type GraphQLInputFieldConfigMap = ObjMap < GraphQLInputFieldConfig > ;
927
921
928
922
export interface GraphQLInputField {
929
923
name : string ;
@@ -937,6 +931,4 @@ export interface GraphQLInputField {
937
931
938
932
export function isRequiredInputField ( field : GraphQLInputField ) : boolean ;
939
933
940
- export interface GraphQLInputFieldMap {
941
- [ key : string ] : GraphQLInputField ;
942
- }
934
+ export type GraphQLInputFieldMap = ObjMap < GraphQLInputField > ;
0 commit comments