Skip to content

Commit c7ddde2

Browse files
author
Travis CI
committed
Deploy c690ca8 to NPM branch
1 parent 05e463c commit c7ddde2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ not altered.
302302
All Immutable.js Collections can be converted to plain JavaScript Arrays and
303303
Objects shallowly with `toArray()` and `toObject()` or deeply with `toJS()`.
304304
All Immutable Collections also implement `toJSON()` allowing them to be passed
305-
to `JSON.stringify` directly.
305+
to `JSON.stringify` directly. They also respect the custom `toJSON()` methods of
306+
nested objects.
306307

307308
<!-- runkit:activate -->
308309
```js

dist/immutable-nonambient.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,9 @@
25012501

25022502
/**
25032503
* Deeply converts this Record to equivalent native JavaScript Object.
2504+
*
2505+
* Note: This method may not be overridden. Objects with custom
2506+
* serialization to plain JS may override toJSON() instead.
25042507
*/
25052508
toJS(): { [K in keyof TProps]: any };
25062509

dist/immutable.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,9 @@ declare module Immutable {
25012501

25022502
/**
25032503
* Deeply converts this Record to equivalent native JavaScript Object.
2504+
*
2505+
* Note: This method may not be overridden. Objects with custom
2506+
* serialization to plain JS may override toJSON() instead.
25042507
*/
25052508
toJS(): { [K in keyof TProps]: any };
25062509

0 commit comments

Comments
 (0)