@@ -14,7 +14,11 @@ import type {
14
14
ThunkObjMap ,
15
15
} from 'graphql' ;
16
16
17
- type MutationFn < TInput = any , TOutput = unknown , TContext = any > = ( object : TInput , ctx : TContext , info : GraphQLResolveInfo ) => TOutput ;
17
+ type MutationFn < TInput = any , TOutput = unknown , TContext = any > = (
18
+ object : TInput ,
19
+ ctx : TContext ,
20
+ info : GraphQLResolveInfo ,
21
+ ) => TOutput ;
18
22
19
23
/**
20
24
* A description of a mutation consumable by mutationWithClientMutationId
@@ -44,9 +48,13 @@ interface MutationConfig<TInput = any, TOutput = unknown, TContext = any> {
44
48
* Returns a GraphQLFieldConfig for the mutation described by the
45
49
* provided MutationConfig.
46
50
*/
47
- export function mutationWithClientMutationId < TInput = any , TOutput = unknown , TContext = any > (
51
+ export function mutationWithClientMutationId <
52
+ TInput = any ,
53
+ TOutput = unknown ,
54
+ TContext = any ,
55
+ > (
48
56
config : MutationConfig < TInput , TOutput , TContext > ,
49
- ) : GraphQLFieldConfig < unknown , unknown > {
57
+ ) : GraphQLFieldConfig < unknown , TContext > {
50
58
const { name, inputFields, outputFields, mutateAndGetPayload } = config ;
51
59
const augmentedInputFields = ( ) => ( {
52
60
...resolveObjMapThunk ( inputFields ) ,
0 commit comments