Function deserialize

Deserializes a string serialized with serialize into a value.

You will need to specify deserializers if custom data types are serialized. See serialize for more information.

  • Type Parameters

    • T

    Parameters

    • serializedString: string

      the serialized string

    • OptionalcustomDeserializers: CustomDeserializers

      an object with custom deserializers

    • Optionaloptions: DeserializeOptions

      options, currently only maxBigIntLength (default: 10000) - maximum allowed length of a single serialized BigInt value, protects against malicious input blocking the event loop, as BigInt parsing time grows faster than the value length; set to Infinity to disable the limit

    Returns T