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 b9dcfa2

Browse filesBrowse files
SetSeq -> Seq.Set
1 parent 91642a1 commit b9dcfa2
Copy full SHA for b9dcfa2

File tree

Expand file treeCollapse file tree

1 file changed

+42
-42
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+42
-42
lines changed

‎type-definitions/Immutable.d.ts

Copy file name to clipboardExpand all lines: type-definitions/Immutable.d.ts
+42-42Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,40 @@ declare module Immutable {
12231223
toSeq(): /*this*/Seq.Indexed<T>
12241224
}
12251225

1226+
1227+
/**
1228+
* `Seq` which represents a set of values.
1229+
*
1230+
* Because `Seq` are often lazy, `Seq.Set` does not provide the same guarantee
1231+
* of value uniqueness as the concrete `Set`.
1232+
*/
1233+
export module Set {
1234+
1235+
/**
1236+
* Returns a Seq.Set of the provided values
1237+
*/
1238+
function of<T>(...values: T[]): Seq.Set<T>;
1239+
}
1240+
1241+
/**
1242+
* Always returns a Seq.Set, discarding associated indices or keys.
1243+
*/
1244+
export function Set<T>(): Seq.Set<T>;
1245+
export function Set<T>(seq: SetIterable<T>): Seq.Set<T>;
1246+
export function Set<T>(seq: IndexedIterable<T>): Seq.Set<T>;
1247+
export function Set<K, V>(seq: KeyedIterable<K, V>): Seq.Set</*[K,V]*/any>;
1248+
export function Set<T>(array: Array<T>): Seq.Set<T>;
1249+
export function Set<T>(iterator: Iterator<T>): Seq.Set<T>;
1250+
export function Set<T>(iterable: /*Iterable<T>*/Object): Seq.Set<T>;
1251+
1252+
export interface Set<T> extends Seq<T, T>, SetIterable<T> {
1253+
1254+
/**
1255+
* Returns itself
1256+
*/
1257+
toSeq(): /*this*/Seq.Set<T>
1258+
}
1259+
12261260
}
12271261

12281262
/**
@@ -1312,40 +1346,6 @@ declare module Immutable {
13121346
toSeq(): /*this*/KeyedSeq<K, V>
13131347
}
13141348

1315-
/**
1316-
* `Seq` which represents a set of values.
1317-
*
1318-
* Because `Seq` are often lazy, `SetSeq` does not provide the same guarantee
1319-
* of value uniqueness as the concrete `Set`.
1320-
*/
1321-
export module SetSeq {
1322-
1323-
/**
1324-
* Returns a SetSeq of the provided values
1325-
*/
1326-
function of<T>(...values: T[]): SetSeq<T>;
1327-
}
1328-
1329-
/**
1330-
* Always returns a SetSeq, discarding associated indices or keys.
1331-
*/
1332-
export function SetSeq<T>(): SetSeq<T>;
1333-
export function SetSeq<T>(seq: SetIterable<T>): SetSeq<T>;
1334-
export function SetSeq<T>(seq: IndexedIterable<T>): SetSeq<T>;
1335-
export function SetSeq<K, V>(seq: KeyedIterable<K, V>): SetSeq</*[K,V]*/any>;
1336-
export function SetSeq<T>(array: Array<T>): SetSeq<T>;
1337-
export function SetSeq<T>(iterator: Iterator<T>): SetSeq<T>;
1338-
export function SetSeq<T>(iterable: /*Iterable<T>*/Object): SetSeq<T>;
1339-
1340-
export interface SetSeq<T> extends Seq<T, T>, SetIterable<T> {
1341-
1342-
/**
1343-
* Returns itself
1344-
*/
1345-
toSeq(): /*this*/SetSeq<T>
1346-
}
1347-
1348-
13491349
/**
13501350
* The `Iterable` is a set of (key, value) entries which can be iterated, and
13511351
* is the base class for all collections in `immutable`, allowing them to
@@ -1603,9 +1603,9 @@ declare module Immutable {
16031603
toIndexedSeq(): Seq.Indexed<V>;
16041604

16051605
/**
1606-
* Returns a SetSeq of the values of this Iterable, discarding keys.
1606+
* Returns a Seq.Set of the values of this Iterable, discarding keys.
16071607
*/
1608-
toSetSeq(): SetSeq<V>;
1608+
toSetSeq(): Seq.Set<V>;
16091609

16101610

16111611
// Iterators
@@ -2401,13 +2401,13 @@ declare module Immutable {
24012401

24022402
/**
24032403
* Set Iterables only represent values. They have no associated keys or
2404-
* indices. Duplicate values are possible in SetSeqs, however the
2404+
* indices. Duplicate values are possible in Seq.Sets, however the
24052405
* concrete `Set` does not allow duplicate values.
24062406
*
24072407
* Iterable methods on SetIterable such as `map` and `forEach` will provide
24082408
* the value as both the first and second arguments to the provided function.
24092409
*
2410-
* var seq = SetSeq.of('A', 'B', 'C');
2410+
* var seq = Seq.Set.of('A', 'B', 'C');
24112411
* assert.equal(seq.every((v, k) => v === k), true);
24122412
*
24132413
*/
@@ -2426,10 +2426,10 @@ declare module Immutable {
24262426
export interface SetIterable<T> extends Iterable<T, T> {
24272427

24282428
/**
2429-
* Returns SetSeq.
2429+
* Returns Seq.Set.
24302430
* @override
24312431
*/
2432-
toSeq(): SetSeq<T>;
2432+
toSeq(): Seq.Set<T>;
24332433
}
24342434

24352435

@@ -2491,10 +2491,10 @@ declare module Immutable {
24912491
export interface SetCollection<T> extends Collection<T, T>, SetIterable<T> {
24922492

24932493
/**
2494-
* Returns SetSeq.
2494+
* Returns Seq.Set.
24952495
* @override
24962496
*/
2497-
toSeq(): SetSeq<T>;
2497+
toSeq(): Seq.Set<T>;
24982498
}
24992499

25002500

0 commit comments

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