Skip to content

Function: deserialize() ​

ts
function deserialize<T>(data: Uint8Array): T;

Deserializes the given Uint8Array into the original data type.

Type Parameters ​

Type ParameterDescription
TThe type of the data which will be returned

Parameters ​

ParameterTypeDescription
dataUint8ArrayUint8Array to be deserialized

Returns ​

T

The original data type