Serializer: {
    serialize: (value: T) => string;
    unserialize: (value: string) => T;
}

Interface for objects that can serialize/unserialize data

Type Parameters

  • T

    Type of data being serialized