Decode
decode(
retTypes
,bytes
):JsonValue
[]
Defined in: packages/candid/src/idl.ts:1746
Decode a binary value
Parameters
Section titled “Parameters”retTypes
Section titled “retTypes”Type
<any
>[]
Types expected in the buffer.
Uint8Array
hex-encoded string, or buffer.
Returns
Section titled “Returns”Value deserialised to JS type