Skip to content

Commit 157edcb

Browse files
TS: remove TS-specific TSource argument for resolveFieldValueOr… (#2491)
It's internal function so not a breaking change
1 parent aa4f85e commit 157edcb

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/execution/execute.d.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,18 @@ export function buildResolveInfo(
134134
path: Path,
135135
): GraphQLResolveInfo;
136136

137-
// Isolates the "ReturnOrAbrupt" behavior to not de-opt the `resolveField`
138-
// function. Returns the result of resolveFn or the abrupt-return Error object.
139-
// TS_SPECIFIC: TSource
140-
export function resolveFieldValueOrError<TSource>(
137+
/**
138+
* Isolates the "ReturnOrAbrupt" behavior to not de-opt the `resolveField`
139+
* function. Returns the result of resolveFn or the abrupt-return Error object.
140+
*
141+
* @internal
142+
*/
143+
export function resolveFieldValueOrError(
141144
exeContext: ExecutionContext,
142-
fieldDef: GraphQLField<TSource, any>,
145+
fieldDef: GraphQLField<any, any>,
143146
fieldNodes: ReadonlyArray<FieldNode>,
144-
resolveFn: GraphQLFieldResolver<TSource, any>,
145-
source: TSource,
147+
resolveFn: GraphQLFieldResolver<any, any>,
148+
source: any,
146149
info: GraphQLResolveInfo,
147150
): Error | any;
148151

0 commit comments

Comments
 (0)