CCC Docs
    Preparing search index...

    Type Alias CodecLike<Encodable, Decoded>

    type CodecLike<Encodable, Decoded = Encodable> = {
        encode: (encodable: Encodable) => Bytes;
        decode: (
            decodable: BytesLike,
            config?: { isExtraFieldIgnored?: boolean },
        ) => Decoded;
        byteLength?: number;
    }

    Type Parameters

    Index

    Properties

    encode: (encodable: Encodable) => Bytes
    decode: (
        decodable: BytesLike,
        config?: { isExtraFieldIgnored?: boolean },
    ) => Decoded
    byteLength?: number