Decoder contract defining the interface for converting encoded data to decoded format.
Common use cases:
The type produced by decoding (e.g., domain object, plaintext)
The type consumed by decoding (e.g., JSON string, ciphertext, transport format)
IMPORT_PATH: "@daiso-tech/core/codec/contracts"
"@daiso-tech/core/codec/contracts"
Decodes the given encoded value into decoded format. Transforms data from encoded format back to original format.
The value in encoded format to decode
The value in decoded format
Decoder contract defining the interface for converting encoded data to decoded format.
Common use cases: