@@ -149,7 +149,7 @@ declare module Immutable {
149
149
export function List < T > ( iterable : /*Iterable<T>*/ Object ) : List < T > ;
150
150
151
151
152
- export interface List < T > extends IndexedCollection < T > {
152
+ export interface List < T > extends Collection . Indexed < T > {
153
153
154
154
// Persistent changes
155
155
@@ -959,7 +959,7 @@ declare module Immutable {
959
959
export function Stack < T > ( iterator : Iterator < T > ) : Stack < T > ;
960
960
export function Stack < T > ( iterable : /*Iterable<T>*/ Object ) : Stack < T > ;
961
961
962
- export interface Stack < T > extends IndexedCollection < T > {
962
+ export interface Stack < T > extends Collection . Indexed < T > {
963
963
964
964
// Reading values
965
965
@@ -2440,7 +2440,7 @@ declare module Immutable {
2440
2440
* cannot be constructed directly.
2441
2441
*
2442
2442
* Implementations should extend one of the subclasses, `Collection.Keyed`,
2443
- * `IndexedCollection `, or `SetCollection`.
2443
+ * `Collection.Indexed `, or `SetCollection`.
2444
2444
*/
2445
2445
export module Collection {
2446
2446
@@ -2458,29 +2458,30 @@ declare module Immutable {
2458
2458
*/
2459
2459
toSeq ( ) : Seq . Keyed < K , V > ;
2460
2460
}
2461
- }
2462
2461
2463
- export interface Collection < K , V > extends Iterable < K , V > {
2464
2462
2465
2463
/**
2466
- * All collections maintain their current `size` as an integer .
2464
+ * `Collection` which represents ordered indexed values .
2467
2465
*/
2468
- size : number ;
2469
- }
2466
+ export module Indexed { }
2470
2467
2468
+ export interface Indexed < T > extends Collection < number , T > , Iterable . Indexed < T > {
2471
2469
2472
- /**
2473
- * `Collection` which represents ordered indexed values.
2474
- */
2475
- export module IndexedCollection { }
2470
+ /**
2471
+ * Returns Seq.Indexed.
2472
+ * @override
2473
+ */
2474
+ toSeq ( ) : Seq . Indexed < T > ;
2475
+ }
2476
+
2477
+ }
2476
2478
2477
- export interface IndexedCollection < T > extends Collection < number , T > , Iterable . Indexed < T > {
2479
+ export interface Collection < K , V > extends Iterable < K , V > {
2478
2480
2479
2481
/**
2480
- * Returns Seq.Indexed.
2481
- * @override
2482
+ * All collections maintain their current `size` as an integer.
2482
2483
*/
2483
- toSeq ( ) : Seq . Indexed < T > ;
2484
+ size : number ;
2484
2485
}
2485
2486
2486
2487
0 commit comments