Skip to content

Commit

Permalink
polish: narrow mapSourceToResponse return type (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR authored Dec 19, 2022
1 parent 1564174 commit baf11a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1678,16 +1678,15 @@ async function* ensureAsyncIterable(
function mapSourceToResponse(
exeContext: ExecutionContext,
resultOrStream: ExecutionResult | AsyncIterable<unknown>,
): PromiseOrValue<
):
| AsyncGenerator<
| ExecutionResult
| InitialIncrementalExecutionResult
| SubsequentIncrementalExecutionResult,
void,
void
>
| ExecutionResult
> {
| ExecutionResult {
if (!isAsyncIterable(resultOrStream)) {
return resultOrStream;
}
Expand Down

0 comments on commit baf11a5

Please sign in to comment.