Skip to content

createCborItemEncoder

createCborItemEncoder(): Encoder<DataValue>

Defined in: packages/format-cbor/src/binary/encoder.ts:181

The encodeCbor grammar behind @ac-kit/format-core’s Encoder contract, for driving an EncodeStream or pairing with CborItemDecoder as a Codec.

Returns the item vectored, which is what the contract’s View | readonly View[] return exists for.

Encoder<DataValue>