Skip to content

Commit

Permalink
fix: Make resolve type more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Aug 26, 2019
1 parent 237c828 commit 98c303e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
GraphQLField,
GraphQLResolveInfo,
GraphQLSchema,
GraphQLTypeResolver,
Expand All @@ -16,7 +15,12 @@ export declare type IMiddlewareResolver<
TContext = any,
TArgs = any
> = (
resolve: Function,
resolve: (
source?: TSource,
args?: TArgs,
context?: TContext,
info?: GraphQLResolveInfo & { mergeInfo?: MergeInfo },
) => any,
parent: TSource,
args: TArgs,
context: TContext,
Expand Down

0 comments on commit 98c303e

Please sign in to comment.