cbor2
    Preparing search index...

    Type Alias TypeEncoder<T>

    TypeEncoder: (
        obj: T,
        w: Writer,
        opts: RequiredEncodeOptions,
    ) => TaggedValue | undefined

    Encode an object of the given type into a CBOR stream. Return a TaggedValue for automatic processing, which will write the tag (unless it is a NaN), then the value. If manual processing is desired, use the given writer to put bytes in the outputs stream.

    Type Parameters

    • T

    Type declaration