deserialize
Deserialize function that supports bigint
and Map
.
Import
ts
import { deserialize } from 'wagmi'
import { deserialize } from 'wagmi'
Usage
ts
import { deserialize } from 'wagmi'
const result = deserialize('{"foo":"wagmi","bar":{"__type":"bigint","value":"123"}}')
import { deserialize } from 'wagmi'
const result = deserialize('{"foo":"wagmi","bar":{"__type":"bigint","value":"123"}}')
Parameters
value
string
The string to deserialze.
reviver
(key: string, value: any) => any
A custom reviver function for handling standard values.
Return Type
unknown
Parsed value.