cbor-x 1.3.0 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/decode.d.ts CHANGED
@@ -20,6 +20,7 @@ export interface Options {
20
20
  maxSharedStructures?: number
21
21
  maxOwnStructures?: number
22
22
  useSelfDescribedHeader?: boolean
23
+ keyMap?: {}
23
24
  shouldShareStructure?: (keys: string[]) => boolean
24
25
  getStructures?(): {}[]
25
26
  saveStructures?(structures: {}[]): boolean | void
@@ -39,6 +40,7 @@ export class Decoder {
39
40
  export function decode(messagePack: Buffer | Uint8Array): any
40
41
  export function decodeMultiple(messagePack: Buffer | Uint8Array, forEach?: (value: any) => any): [] | void
41
42
  export function addExtension(extension: Extension): void
43
+ export function clearSource(): void
42
44
  export function roundFloat32(float32Number: number): number
43
45
  export let isNativeAccelerationEnabled: boolean
44
46