From 0c3f99a03d09ea09d533061589c8393a91d00f4d Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 18 Mar 2020 17:19:10 +0200 Subject: [PATCH] TS: remove TS-specific TSource argument for resolveFieldValueOrError It's internal function so not a breaking change --- src/execution/execute.d.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/execution/execute.d.ts b/src/execution/execute.d.ts index fdb62dbb31..46a1bc60e5 100644 --- a/src/execution/execute.d.ts +++ b/src/execution/execute.d.ts @@ -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( +/** + * 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, + fieldDef: GraphQLField, fieldNodes: ReadonlyArray, - resolveFn: GraphQLFieldResolver, - source: TSource, + resolveFn: GraphQLFieldResolver, + source: any, info: GraphQLResolveInfo, ): Error | any;