Skip to content

Commit 482d419

Browse files
committed
Return Collection.toSeq's origin type: Seq<K, V>
Previously it was any to work around Typescript 2.4's out-of-memory crash.
1 parent b9ae2bd commit 482d419

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/immutable-nonambient.d.ts

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

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

dist/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(): any;
3602+
toSeq(): Seq<K, V>;
36033603

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

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(): any;
3602+
toSeq(): Seq<K, V>;
36033603

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

0 commit comments

Comments
 (0)