Beta
A two-way codec binding a TypeScript type T to its CBOR representation. The codec value is the runtime witness that justifies the generic in decodeWith - no unwitnessed casts.
T
Ship-with exemplar: CborDate.codec.
CborDate.codec
Optional
Readonly
The tags this codec's encoding carries, if any (informational).
Convert a decoded CBOR value to T.
on shape/tag mismatch.
Convert a T back to CBOR.
A two-way codec binding a TypeScript type
Tto its CBOR representation. The codec value is the runtime witness that justifies the generic in decodeWith - no unwitnessed casts.Ship-with exemplar:
CborDate.codec.