Interface ISerderRegister

The ISerderRegister contract defines a standard way to register custom serialization and deserialization logic.

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

interface ISerderRegister {
    registerClass<TSerializedClassInstance extends SerializedValueBase>(
        class_: SerializableClass<TSerializedClassInstance>,
        prefix?: OneOrMore<string>,
    ): this;
    registerCustom<
        TCustomDeserialized,
        TCustomSerialized extends SerializedValueBase,
    >(
        transformer: ISerdeTransformer<TCustomDeserialized, TCustomSerialized>,
        prefix?: OneOrMore<string>,
    ): this;
}

Methods