CCC Docs
    Preparing search index...

    Type Alias CodecLike<Encodable, Decoded>

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

    Type Parameters

    Index

    Properties

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