You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [JSON replacer function](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter) used for both actions and states stringify.
63
+
* In addition, you can specify a data type by adding a [`__serializedType__`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/helpers/index.js#L4)
64
+
* key. So you can deserialize it back while importing or persisting data.
65
+
* Moreover, it will also [show a nice preview showing the provided custom type](https://cloud.githubusercontent.com/assets/7957859/21814330/a17d556a-d761-11e6-85ef-159dd12f36c5.png):
* used for parsing the imported actions and states. See [`remotedev-serialize`](https://github.com/zalmoxisus/remotedev-serialize/blob/master/immutable/serialize.js#L8-L41)
71
+
* as an example on how to serialize special data types and get them back.
72
+
*/
73
+
reviver?: (key: string,value: unknown)=>any
74
+
/**
75
+
* Automatically serialize/deserialize immutablejs via [remotedev-serialize](https://github.com/zalmoxisus/remotedev-serialize).
76
+
* Just pass the Immutable library. It will support all ImmutableJS structures. You can even export them into a file and get them back.
77
+
* The only exception is `Record` class, for which you should pass this in addition the references to your classes in `refs`.
78
+
*/
79
+
immutable?: any
80
+
/**
81
+
* ImmutableJS `Record` classes used to make possible restore its instances back when importing, persisting...
82
+
*/
83
+
refs?: any
52
84
}
53
85
/**
54
86
* function which takes `action` object and id number as arguments, and should return `action` object back.
0 commit comments