Skip to content

Commit f291207

Browse files
committed
type result of asyncIterator .next() call
1 parent 05153dc commit f291207

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();
@@ -2009,7 +2009,7 @@ async function executeStreamAsyncIteratorItem(
20092009
asyncPayloadRecord: StreamItemRecord,
20102010
itemPath: Path,
20112011
): Promise<IteratorResult<unknown>> {
2012-
let iteration;
2012+
let iteration: IteratorResult<unknown>;
20132013
try {
20142014
iteration = await iterator.next();
20152015
} catch (rawError) {
@@ -2068,7 +2068,7 @@ async function executeStreamAsyncIterator(
20682068
streamContext,
20692069
});
20702070

2071-
let iteration;
2071+
let iteration: IteratorResult<unknown>;
20722072
try {
20732073
// eslint-disable-next-line no-await-in-loop
20742074
iteration = await executeStreamAsyncIteratorItem(

0 commit comments

Comments
 (0)