Serializes and deserializes values.

interface Serializer<Value> {
    parse(valueStr): Value;
    stringify(value): string;
}

Type Parameters

  • Value

    The value to serialize.

Methods

  • Deserializes a stringified value.

    Parameters

    • valueStr: string

      The stringified value.

    Returns Value

  • Serializes a value as a string.

    Parameters

    • value: Value

      The value to serialize.

    Returns string