cborkit
Version:
A modern, extensible CBOR (Concise Binary Object Representation) library for TypeScript and JavaScript.
18 lines (15 loc) • 465 B
TypeScript
import { Decoder } from '../decoder.js';
import '../types-UHBEKmQx.js';
type MapDecoderOptions = {
/**
* Determines when to return a map.
*
* - `"always"` - Always return a map.
* - `"if-needed"` - Return a map only if some keys are not text.
*
* @default "if-needed"
*/
mode?: "always" | "if-needed";
};
declare const mapDecoder: (options?: MapDecoderOptions) => Decoder;
export { type MapDecoderOptions, mapDecoder };