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;