# Installation
> `npm install --save @types/jsonpack`

# Summary
This package contains type definitions for jsonpack (https://github.com/sapienlab/jsonpack).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonpack.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsonpack/index.d.ts)
````ts
export interface PackOptions {
    verbose?: boolean | undefined;
}

export interface PackDebugOptions extends PackOptions {
    debug?: boolean | undefined;
}

export interface DebugObject {
    dictionary: {
        strings: string[];
        integers: number[];
        floats: number[];
    };
    ast: Array<{
        type: string;
        index: number;
    }>;
    packed: string;
}

export function pack(json: string | object, options?: PackOptions): string;
export function pack(json: string | object, options?: PackDebugOptions): DebugObject;
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
export function unpack<T = {}>(packed: string, options?: PackOptions): T;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Vlad Jerca](https://github.com/vladjerca).
