Skip to content

Commit

Permalink
Add TResult to GraphQLFieldResolver signature (#3255)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Sep 15, 2021
1 parent 9e584e3 commit e88c58e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/type/definition.ts
Expand Up @@ -965,12 +965,13 @@ export type GraphQLFieldResolver<
TSource,
TContext,
TArgs = { [argument: string]: any },
TResult = unknown,
> = (
source: TSource,
args: TArgs,
context: TContext,
info: GraphQLResolveInfo,
) => unknown;
) => TResult;

export interface GraphQLResolveInfo {
readonly fieldName: string;
Expand Down

0 comments on commit e88c58e

Please sign in to comment.