8000 Revert "Replaced use of Flows private $Iterable with own Iterable def… · immutable-js/immutable-js@3327572 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3327572

Browse files
committed
Revert "Replaced use of Flows private $Iterable with own Iterable definition Fixes many errors in flow tests."
78811b4
1 parent a2ea1c6 commit 3327572

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

type-definitions/immutable.js.flow

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,7 @@
2727
*
2828
* Note that Immutable values implement the `ESIterable` interface.
2929
*/
30-
31-
type IteratorResult<Yield,Return> = {
32-
done: true,
33-
value?: Return,
34-
} | {
35-
done: false,
36-
value: Yield,
37-
};
38-
39-
40-
interface _Iterator<Yield,Return,Next> {
41-
@@iterator(): _Iterator<Yield,Return,Next>;
42-
next(value?: Next): IteratorResult<Yield,Return>;
43-
}
44-
45-
46-
interface _ESIterable<Yield,Return,Next> {
47-
@@iterator(): _Iterator<Yield,Return,Next>;
48-
}
49-
50-
type Iterator<T> = _Iterator<T, void, void>
51-
type ESIterable<T> = _ESIterable<T,void,void>;
30+
type ESIterable<T> = $Iterable<T,void,void>;
5231

5332
declare class Iterable<K, V> extends _Iterable<K, V, typeof KeyedIterable, typeof IndexedIterable, typeof SetIterable> {}
5433

0 commit comments

Comments
 (0)
0