Skip to content

Commit 89007fe

Browse files
committed
type result of asyncIterator .next() call
1 parent c3dd54f commit 89007fe

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
@@ -1064,7 +1064,7 @@ async function completeAsyncIteratorValue(
10641064
}
10651065

10661066
const itemPath = addPath(path, index, undefined);
1067-
let iteration;
1067+
let iteration: IteratorResult<unknown>;
10681068
try {
10691069
// eslint-disable-next-line no-await-in-loop
10701070
iteration = await iterator.next();
@@ -2012,7 +2012,7 @@ async function executeStreamAsyncIteratorItem(
20122012
asyncPayloadRecord: StreamItemRecord,
20132013
itemPath: Path,
20142014
): Promise<IteratorResult<unknown>> {
2015-
let iteration;
2015+
let iteration: IteratorResult<unknown>;
20162016
try {
20172017
iteration = await iterator.next();
20182018
} catch (rawError) {
@@ -2072,7 +2072,7 @@ async function executeStreamAsyncIterator(
20722072
streamContext,
20732073
});
20742074

2075-
let iteration;
2075+
let iteration: IteratorResult<unknown>;
20762076
try {
20772077
// eslint-disable-next-line no-await-in-loop
20782078
iteration = await executeStreamAsyncIteratorItem(

0 commit comments

Comments
 (0)