Skip to content

Commit 8f30fd8

Browse files
committed
type result of asyncIterator .next() call
1 parent aca2ba1 commit 8f30fd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ async function completeAsyncIteratorValue(
10601060
}
10611061

10621062
const itemPath = addPath(path, index, undefined);
1063-
let iteration;
1063+
let iteration: IteratorResult<unknown>;
10641064
try {
10651065
// eslint-disable-next-line no-await-in-loop
10661066
iteration = await iterator.next();
@@ -1953,7 +1953,7 @@ async function executeStreamIteratorItem(
19531953
asyncPayloadRecord: StreamRecord,
19541954
itemPath: Path,
19551955
): Promise<IteratorResult<unknown>> {
1956-
let iteration;
1956+
let iteration: IteratorResult<unknown>;
19571957
try {
19581958
iteration = await iterator.next();
19591959
} catch (rawError) {
@@ -2008,7 +2008,7 @@ async function executeStreamIterator(
20082008
exeContext,
20092009
});
20102010

2011-
let iteration;
2011+
let iteration: IteratorResult<unknown>;
20122012
try {
20132013
// eslint-disable-next-line no-await-in-loop
20142014
iteration = await executeStreamIteratorItem(

0 commit comments

Comments
 (0)