CCC Docs
    Preparing search index...

    Type Alias CodecLike<Encodable, Decoded, Context>

    type CodecLike<Encodable, Decoded = Encodable, Context = any> = {
        encode: (encodable: Encodable) => BytesLike;
        decode: (decodable: Bytes, context?: Context) => Decoded;
        from?: ((encodable: Encodable) => Decoded) | null;
        byteLength?: number;
    }

    Type Parameters

    Index
    encode: (encodable: Encodable) => BytesLike
    decode: (decodable: Bytes, context?: Context) => Decoded
    from?: ((encodable: Encodable) => Decoded) | null
    byteLength?: number