Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c175a3

Browse filesBrowse files
IndexedCollection -> Collection.Indexed
1 parent bd74923 commit 7c175a3
Copy full SHA for 7c175a3

File tree

Expand file treeCollapse file tree

1 file changed

+17
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-16
lines changed

‎type-definitions/Immutable.d.ts

Copy file name to clipboardExpand all lines: type-definitions/Immutable.d.ts
+17-16Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ declare module Immutable {
149149
export function List<T>(iterable: /*Iterable<T>*/Object): List<T>;
150150

151151

152-
export interface List<T> extends IndexedCollection<T> {
152+
export interface List<T> extends Collection.Indexed<T> {
153153

154154
// Persistent changes
155155

@@ -959,7 +959,7 @@ declare module Immutable {
959959
export function Stack<T>(iterator: Iterator<T>): Stack<T>;
960960
export function Stack<T>(iterable: /*Iterable<T>*/Object): Stack<T>;
961961

962-
export interface Stack<T> extends IndexedCollection<T> {
962+
export interface Stack<T> extends Collection.Indexed<T> {
963963

964964
// Reading values
965965

@@ -2440,7 +2440,7 @@ declare module Immutable {
24402440
* cannot be constructed directly.
24412441
*
24422442
* Implementations should extend one of the subclasses, `Collection.Keyed`,
2443-
* `IndexedCollection`, or `SetCollection`.
2443+
* `Collection.Indexed`, or `SetCollection`.
24442444
*/
24452445
export module Collection {
24462446

@@ -2458,29 +2458,30 @@ declare module Immutable {
24582458
*/
24592459
toSeq(): Seq.Keyed<K, V>;
24602460
}
2461-
}
24622461

2463-
export interface Collection<K, V> extends Iterable<K, V> {
24642462

24652463
/**
2466-
* All collections maintain their current `size` as an integer.
2464+
* `Collection` which represents ordered indexed values.
24672465
*/
2468-
size: number;
2469-
}
2466+
export module Indexed {}
24702467

2468+
export interface Indexed<T> extends Collection<number, T>, Iterable.Indexed<T> {
24712469

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+
}
24762478

2477-
export interface IndexedCollection<T> extends Collection<number, T>, Iterable.Indexed<T> {
2479+
export interface Collection<K, V> extends Iterable<K, V> {
24782480

24792481
/**
2480-
* Returns Seq.Indexed.
2481-
* @override
2482+
* All collections maintain their current `size` as an integer.
24822483
*/
2483-
toSeq(): Seq.Indexed<T>;
2484+
size: number;
24842485
}
24852486

24862487

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.