Skip to content

Commit 96b81ea

Browse files
committed
Work around TS2.4:Collection.toSeq now returns any
This works around the out-of-memory crash in Typescript 2.4 that arises from the compiler doing too much work when checking the correctness of `extends` relationships. The Typescript compiler got caught in a deep recursion when checking `toSeq: Seq<K, V>`, the previous type.
1 parent 9b0eb51 commit 96b81ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

type-definitions/Immutable.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@ declare module Immutable {
35993599
* Converts this Collection to a Seq of the same kind (indexed,
36003600
* keyed, or set).
36013601
*/
3602-
toSeq(): Seq<K, V>;
3602+
toSeq(): any;
36033603

36043604
/**
36053605
* Returns a Seq.Keyed from this Collection where indices are treated as keys.

0 commit comments

Comments
 (0)