Type Alias SerializableClass<TSerializedValue>

SerializableClass: {
    deserialize(
        serializedValue: TSerializedValue,
    ): ISerializable<TSerializedValue>;
    new (...arguments_: any[]): ISerializable<TSerializedValue>;
}

Class contract for types that support both serialization and static deserialization. Defines the interface that custom classes must implement for flexible serde.

Implementers provide:

  • Instance method serialize() to convert to serialized form
  • Static method deserialize() to reconstruct from serialized form

Type Parameters

  • TSerializedValue extends SerializedValueBase

    The serialized representation type (must extend SerializedValueBase)

    IMPORT_PATH: "@daiso-tech/core/serde/contracts"

Type declaration