UNPKG

@jsonjoy.com/json-pack

Version:

High-performance JSON serialization library

15 lines (14 loc) 440 B
/** * Use this wrapper is you have a pre-encoded MessagePack or CBOR value and you would * like to dump it into a the document as-is. The contents of `buf` will * be written as is to the document. * * It also serves as CBOR simple value container. In which case the type of value * `val` field is "number". * * @category Value */ export declare class JsonPackValue<T = Uint8Array> { readonly val: T; constructor(val: T); }