8000 Fix setIn definition. Closes #306 · powercoder23/immutable-js@8bcf8c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bcf8c6

Browse files
committed
Fix setIn definition. Closes immutable-js#306
1 parent d46faa6 commit 8bcf8c6

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

dist/immutable.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ declare module 'immutable' {
272272
* Index numbers are used as keys to determine the path to follow in
273273
* the List.
274274
*/
275-
setIn(keyPath: Array<any>, value: T): List<T>;
276-
setIn(keyPath: Iterable<any, any>, value: T): List<T>;
275+
setIn(keyPath: Array<any>, value: any): List<T>;
276+
setIn(keyPath: Iterable<any, any>, value: any): List<T>;
277277

278278
/**
279279
* Returns a new List having removed the value at this `keyPath`. If any
@@ -524,8 +524,8 @@ declare module 'immutable' {
524524
* Returns a new Map having set `value` at this `keyPath`. If any keys in
525525
* `keyPath` do not exist, a new immutable Map will be created at that key.
526526
*/
527-
setIn(keyPath: Array<any>, value: V): Map<K, V>;
528-
setIn(KeyPath: Iterable<any, any>, value: V): Map<K, V>;
527+
setIn(keyPath: Array<any>, value: any): Map<K, V>;
528+
setIn(KeyPath: Iterable<any, any>, value: any): Map<K, V>;
529529

530530
/**
531531
* Returns a new Map having removed the value at this `keyPath`. If any keys
@@ -1714,7 +1714,7 @@ declare module 'immutable' {
17141714
* Returns a new Iterable of the same type containing all entries except
17151715
* the first.
17161716
*/
1717-
rest(): /*this*/Iterable<K, V>
1717+
rest(): /*this*/Iterable<K, V>;
17181718

17191719
/**
17201720
* Returns a new Iterable of the same type containing all entries except

dist/immutable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4264,7 +4264,7 @@
42644264
var isFirst = true;
42654265
this.__iterate(function(v ) {
42664266
isFirst ? (isFirst = false) : (joined += separator);
4267-
joined += v !== null && v !== undefined ? v : '';
4267+
joined += v !== null && v !== undefined ? v.toString() : '';
42684268
});
42694269
return joined;
42704270
},

dist/immutable.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

type-definitions/Immutable.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ declare module 'immutable' {
272272
* Index numbers are used as keys to determine the path to follow in
273273
* the List.
274274
*/
275-
setIn(keyPath: Array<any>, value: T): List<T>;
276-
setIn(keyPath: Iterable<any, any>, value: T): List<T>;
275+
setIn(keyPath: Array<any>, value: any): List<T>;
276+
setIn(keyPath: Iterable<any, any>, value: any): List<T>;
277277

278278
/**
279279
* Returns a new List having removed the value at this `keyPath`. If any
@@ -524,8 +524,8 @@ declare module 'immutable' {
524524
* Returns a new Map having set `value` at this `keyPath`. If any keys in
525525
* `keyPath` do not exist, a new immutable Map will be created at that key.
526526
*/
527-
setIn(keyPath: Array<any>, value: V): Map<K, V>;
528-
setIn(KeyPath: Iterable<any, any>, value: V): Map<K, V>;
527+
setIn(keyPath: Array<any>, value: any): Map<K, V>;
528+
setIn(KeyPath: Iterable<any, any>, value: any): Map<K, V>;
529529

530530
/**
531531
* Returns a new Map having removed the value at this `keyPath`. If any keys

0 commit comments

Comments
 (0)
0