@@ -714,9 +714,9 @@ export type GraphQLIsTypeOfFn<TSource, TContext> = (
714
714
info : GraphQLResolveInfo ,
715
715
) => MaybePromise < boolean > ;
716
716
717
- export type GraphQLFieldResolver < TSource , TContext > = (
717
+ export type GraphQLFieldResolver < TSource , TContext , TArgs = { [ argument : string ] : any } > = (
718
718
source : TSource ,
719
- args : { [ argument : string ] : any } ,
719
+ args : TArgs ,
720
720
context : TContext ,
721
721
info : GraphQLResolveInfo ,
722
722
) => mixed ;
@@ -739,11 +739,11 @@ export type ResponsePath = {|
739
739
+ key : string | number ,
740
740
| } ;
741
741
742
- export type GraphQLFieldConfig < TSource , TContext > = {
742
+ export type GraphQLFieldConfig < TSource , TContext , TArgs = { [ argument : string ] : any } > = {
743
743
type : GraphQLOutputType ,
744
744
args ?: GraphQLFieldConfigArgumentMap ,
745
- resolve ?: GraphQLFieldResolver < TSource , TContext> ,
746
- subscribe ?: GraphQLFieldResolver < TSource , TContext> ,
745
+ resolve ?: GraphQLFieldResolver < TSource , TContext, TArgs > ,
746
+ subscribe ?: GraphQLFieldResolver < TSource , TContext, TArgs > ,
747
747
deprecationReason ?: ?string ,
748
748
description ?: ?string ,
749
749
astNode ?: ?FieldDefinitionNode ,
@@ -762,13 +762,13 @@ export type GraphQLFieldConfigMap<TSource, TContext> = ObjMap<
762
762
GraphQLFieldConfig < TSource , TContext > ,
763
763
> ;
764
764
765
- export type GraphQLField < TSource , TContext > = {
765
+ export type GraphQLField < TSource , TContext , TArgs = { [ argument : string ] : any } > = {
766
766
name : string ,
767
767
description : ?string ,
768
768
type : GraphQLOutputType ,
769
769
args : Array < GraphQLArgument > ,
770
- resolve ? : GraphQLFieldResolver < TSource , TContext> ,
771
- subscribe ?: GraphQLFieldResolver < TSource , TContext> ,
770
+ resolve ? : GraphQLFieldResolver < TSource , TContext, TArgs > ,
771
+ subscribe ?: GraphQLFieldResolver < TSource , TContext, TArgs > ,
772
772
isDeprecated ?: boolean ,
773
773
deprecationReason ?: ?string ,
774
774
astNode ?: ?FieldDefinitionNode ,
0 commit comments