Type Alias ICodec<TDecodedValue, TEncodedValue>

Complete codec contract combining encoding and decoding capabilities. Provides bidirectional transformation between two data formats.

Useful for formats requiring both encoding and decoding:

  • JSON encoding/decoding
  • Compression/decompression
  • Encryption/decryption
  • Binary format marshalling/unmarshalling

Type Parameters

  • TDecodedValue

    The original/human-readable data format

  • TEncodedValue

    The transportable/storage data format

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