@@ -2882,7 +2882,9 @@ declare namespace Immutable {
2882
2882
* Note: `Seq.Indexed` is a conversion function and not a class, and does
2883
2883
* not use the `new` keyword during construction.
2884
2884
*/
2885
- function Indexed < T > ( collection : Iterable < T > | ArrayLike < T > ) : Seq . Indexed < T > ;
2885
+ function Indexed < T > (
2886
+ collection ?: Iterable < T > | ArrayLike < T >
2887
+ ) : Seq . Indexed < T > ;
2886
2888
2887
2889
interface Indexed < T > extends Seq < number , T > , Collection . Indexed < T > {
2888
2890
/**
@@ -3044,7 +3046,7 @@ declare namespace Immutable {
3044
3046
* Note: `Seq.Set` is a conversion function and not a class, and does not
3045
3047
* use the `new` keyword during construction.
3046
3048
*/
3047
- function Set < T > ( collection : Iterable < T > | ArrayLike < T > ) : Seq . Set < T > ;
3049
+ function Set < T > ( collection ? : Iterable < T > | ArrayLike < T > ) : Seq . Set < T > ;
3048
3050
3049
3051
interface Set < T > extends Seq < T , T > , Collection . Set < T > {
3050
3052
/**
@@ -3148,7 +3150,7 @@ declare namespace Immutable {
3148
3150
collection : Collection . Indexed < T > | Iterable < T > | ArrayLike < T >
3149
3151
) : Seq . Indexed < T > ;
3150
3152
function Seq < V > ( obj : { [ key : string ] : V } ) : Seq . Keyed < string , V > ;
3151
- function Seq ( ) : Seq < unknown , unknown > ;
3153
+ function Seq < K = unknown , V = unknown > ( ) : Seq < K , V > ;
3152
3154
3153
3155
interface Seq < K , V > extends Collection < K , V > {
3154
3156
/**
@@ -3325,7 +3327,7 @@ declare namespace Immutable {
3325
3327
* Note: `Collection.Keyed` is a conversion function and not a class, and
3326
3328
* does not use the `new` keyword during construction.
3327
3329
*/
3328
- function Keyed < K , V > ( collection : Iterable < [ K , V ] > ) : Collection . Keyed < K , V > ;
3330
+ function Keyed < K , V > ( collection ? : Iterable < [ K , V ] > ) : Collection . Keyed < K , V > ;
3329
3331
function Keyed < V > ( obj : { [ key : string ] : V } ) : Collection . Keyed < string , V > ;
3330
3332
3331
3333
interface Keyed < K , V > extends Collection < K , V > {
@@ -3495,7 +3497,7 @@ declare namespace Immutable {
3495
3497
* does not use the `new` keyword during construction.
3496
3498
*/
3497
3499
function Indexed < T > (
3498
- collection : Iterable < T > | ArrayLike < T >
3500
+ collection ? : Iterable < T > | ArrayLike < T >
3499
3501
) : Collection . Indexed < T > ;
3500
3502
3501
3503
interface Indexed < T > extends Collection < number , T > {
@@ -3793,7 +3795,7 @@ declare namespace Immutable {
3793
3795
* Note: `Collection.Set` is a factory function and not a class, and does
3794
3796
* not use the `new` keyword during construction.
3795
3797
*/
3796
- function Set < T > ( collection : Iterable < T > | ArrayLike < T > ) : Collection . Set < T > ;
3798
+ function Set < T > ( collection ? : Iterable < T > | ArrayLike < T > ) : Collection . Set < T > ;
3797
3799
3798
3800
interface Set < T > extends Collection < T , T > {
3799
3801
/**
@@ -3900,6 +3902,7 @@ declare namespace Immutable {
3900
3902
function Collection < V > ( obj : {
3901
3903
[ key : string ] : V ;
3902
3904
} ) : Collection . Keyed < string , V > ;
3905
+ function Collection < K = unknown , V = unknown > ( ) : Collection < K , V > ;
3903
3906
3904
3907
interface Collection < K , V > extends ValueObject {
3905
3908
// Value equality
0 commit comments