Skip to content

Commit 307c5e5

Browse files
committed
type result of asyncIterator .next() call
1 parent 1aa1229 commit 307c5e5

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
@@ -1052,7 +1052,7 @@ async function completeAsyncIteratorValue(
10521052
}
10531053

10541054
const itemPath = addPath(path, index, undefined);
1055-
let iteration;
1055+
let iteration: IteratorResult<unknown>;
10561056
try {
10571057
// eslint-disable-next-line no-await-in-loop
10581058
iteration = await iterator.next();
@@ -1911,7 +1911,7 @@ async function executeStreamIteratorItem(
19111911
asyncPayloadRecord: StreamRecord,
19121912
itemPath: Path,
19131913
): Promise<IteratorResult<unknown>> {
1914-
let iteration;
1914+
let iteration: IteratorResult<unknown>;
19151915
try {
19161916
iteration = await iterator.next();
19171917
} catch (rawError) {
@@ -1985,7 +1985,7 @@ async function executeStreamIterator(
19851985
exeContext,
19861986
});
19871987

1988-
let iteration;
1988+
let iteration: IteratorResult<unknown>;
19891989
try {
19901990
// eslint-disable-next-line no-await-in-loop
19911991
iteration = await executeStreamIteratorItem(

0 commit comments

Comments
 (0)