File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
/**
11
11
* Revive a value serialized with `devalue.stringify`
12
12
* @param {string } serialized
13
- * @param {Record<string, (value: any) => any> } revivers
13
+ * @param {Record<string, (value: any) => any> } [ revivers]
14
14
*/
15
15
export function parse ( serialized , revivers ) {
16
16
return unflatten ( JSON . parse ( serialized ) , revivers ) ;
@@ -19,7 +19,7 @@ export function parse(serialized, revivers) {
19
19
/**
20
20
* Revive a value flattened with `devalue.stringify`
21
21
* @param {number | any[] } parsed
22
- * @param {Record<string, (value: any) => any> } revivers
22
+ * @param {Record<string, (value: any) => any> } [ revivers]
23
23
*/
24
24
export function unflatten ( parsed , revivers ) {
25
25
if ( typeof parsed === 'number' ) return hydrate ( parsed , true ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
/**
18
18
* Turn a value into a JSON string that can be parsed with `devalue.parse`
19
19
* @param {any } value
20
- * @param {Record<string, (value: any) => any> } reducers
20
+ * @param {Record<string, (value: any) => any> } [ reducers]
21
21
*/
22
22
export function stringify ( value , reducers ) {
23
23
/** @type {any[] } */
You can’t perform that action at this time.
0 commit comments