Type Alias SerializedValueBase

SerializedValueBase: { version: string | number }

Base structure for serialized values with version tracking. Enables safe deserialization with schema evolution support.

All serialized values should include a version field to handle migration as serialization formats evolve.

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

Type declaration

  • version: string | number

    Version identifier for the serialization format. Used to determine which deserializer/decoder to apply during deserialization. Can be numeric (e.g., 1, 2, 3) or string (e.g., "1.0", "2.1").