Skip to content

Commit 661fa61

Browse files
committed
Fix typo in collection shim
1 parent 7ed4a9e commit 661fa61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/collectionShims.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @internal */
22
namespace ts {
3-
type GetIteratorCallback = <I extends readonly any[] | ReadonlySetShim<any> | ReadonlyMapShim<any, any> | undefined>(iterable: I) => Iterator<
3+
type GetIteratorCallback = <I extends readonly any[] | ReadonlySetShim<any> | ReadonlyMapShim<any, any> | undefined>(iterable: I) => IteratorShim<
44
I extends ReadonlyMapShim<infer K, infer V> ? [K, V] :
55
I extends ReadonlySetShim<infer T> ? T :
66
I extends readonly (infer T)[] ? T :
@@ -188,7 +188,7 @@ namespace ts {
188188
}
189189
}
190190

191-
function forEachIteration<T>(iterator: Iterator<T> | undefined, action: (value: any) => void) {
191+
function forEachIteration<T>(iterator: IteratorShim<T> | undefined, action: (value: any) => void) {
192192
if (iterator) {
193193
for (let step = iterator.next(); !step.done; step = iterator.next()) {
194194
action(step.value);

0 commit comments

Comments
 (0)