decode
Decode Base64 JSON without validating its entity shape. Decoded values must still pass through deserialize() before reconstruction.
You are reading the v8 docsDev
FunctionTypeScript@discord-player/plugin-host
View sourcepackages/plugin-host/src/utils/serde.ts:122function decode(value: string): unknownDecode Base64 JSON without validating its entity shape.
Decoded values must still pass through deserialize() before reconstruction.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | Base64 JSON string. |
Returns
unknown
Parsed but untrusted data.