Skip to content

Commit 33e2624

Browse files
committed
Fix Iterator.flatMap custom type fix
1 parent 104dd23 commit 33e2624

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core-js-types/src/base/proposals/iterator-helpers-custom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
declare namespace CoreJS {
1010
interface IteratorObject<T, TReturn, TNext> extends Iterator<T, TReturn, TNext> {}
1111

12-
export type IteratorFlatMap<T, U> = (callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U>) => IteratorObject<U, undefined, unknown>;
12+
export type IteratorFlatMap<T, U> = (callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>) => IteratorObject<U, undefined, unknown>;
1313

1414
export type IteratorMap<T, U> = (callback: (value: T, index: number) => U) => IteratorObject<U, undefined, unknown>;
1515

packages/core-js-types/src/base/pure/proposals/iterator-helpers-custom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// License: https://github.com/microsoft/TypeScript/blob/v5.9.3/LICENSE.txt
1010

1111
declare namespace CoreJS {
12-
export type IteratorFlatMap<T, U> = (callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U>) => CoreJS.CoreJSIteratorObject<U, undefined, unknown>;
12+
export type IteratorFlatMap<T, U> = (callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>) => CoreJS.CoreJSIteratorObject<U, undefined, unknown>;
1313

1414
export type IteratorMap<T, U> = (callback: (value: T, index: number) => U) => CoreJS.CoreJSIteratorObject<U, undefined, unknown>;
1515

0 commit comments

Comments
 (0)