Skip to content

Commit

Permalink
TS: remove TS-specific TSource argument for resolveFieldValueOr… (#2491)
Browse files Browse the repository at this point in the history
It's internal function so not a breaking change
  • Loading branch information
IvanGoncharov authored Mar 20, 2020
1 parent aa4f85e commit 157edcb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/execution/execute.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,18 @@ export function buildResolveInfo(
path: Path,
): GraphQLResolveInfo;

// Isolates the "ReturnOrAbrupt" behavior to not de-opt the `resolveField`
// function. Returns the result of resolveFn or the abrupt-return Error object.
// TS_SPECIFIC: TSource
export function resolveFieldValueOrError<TSource>(
/**
* Isolates the "ReturnOrAbrupt" behavior to not de-opt the `resolveField`
* function. Returns the result of resolveFn or the abrupt-return Error object.
*
* @internal
*/
export function resolveFieldValueOrError(
exeContext: ExecutionContext,
fieldDef: GraphQLField<TSource, any>,
fieldDef: GraphQLField<any, any>,
fieldNodes: ReadonlyArray<FieldNode>,
resolveFn: GraphQLFieldResolver<TSource, any>,
source: TSource,
resolveFn: GraphQLFieldResolver<any, any>,
source: any,
info: GraphQLResolveInfo,
): Error | any;

Expand Down

0 comments on commit 157edcb

Please sign in to comment.