Skip to content

Commit 91c280d

Browse files
committed
type result of asyncIterator .next() call
1 parent f81a823 commit 91c280d

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
@@ -1061,7 +1061,7 @@ async function completeAsyncIteratorValue(
10611061
}
10621062

10631063
const itemPath = addPath(path, index, undefined);
1064-
let iteration;
1064+
let iteration: IteratorResult<unknown>;
10651065
try {
10661066
// eslint-disable-next-line no-await-in-loop
10671067
iteration = await iterator.next();
@@ -1954,7 +1954,7 @@ async function executeStreamIteratorItem(
19541954
asyncPayloadRecord: StreamRecord,
19551955
itemPath: Path,
19561956
): Promise<IteratorResult<unknown>> {
1957-
let iteration;
1957+
let iteration: IteratorResult<unknown>;
19581958
try {
19591959
iteration = await iterator.next();
19601960
} catch (rawError) {
@@ -2009,7 +2009,7 @@ async function executeStreamIterator(
20092009
exeContext,
20102010
});
20112011

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

0 commit comments

Comments
 (0)