# Installation
> `npm install --save @types/ajv-pack`

# Summary
This package contains type definitions for ajv-pack (https://github.com/epoberezkin/ajv-pack).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ajv-pack.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ajv-pack/index.d.ts)
````ts
import { Ajv, ValidateFunction } from "ajv";

declare namespace AjvPack {
    interface AjvPack {
        /**
         * validate data against the schema
         * @param schema JSON-schema
         * @param data data to validate
         * @return validation result
         */
        validate(this: Ajv, schema: object, data: any): boolean;

        /**
         * compile the schema and require the module
         * @param  schema JSON-schema
         * @return validation function
         */
        compile(this: Ajv, schema: object): ValidateFunction;

        /**
         * add schema to the instance
         * @return result from ajv instance
         */
        addSchema: Ajv["addSchema"];

        /**
         * add custom keyword to the instance
         * @return result from ajv instance
         */
        addKeyword: Ajv["addKeyword"];
    }

    function instance(ajv: Ajv): AjvPack;
}

declare function AjvPack(ajv: Ajv, validate: ValidateFunction): string;

export = AjvPack;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [ajv](https://npmjs.com/package/ajv)

# Credits
These definitions were written by [Mihail Malo](https://github.com/qm3ster), and [Christian Murphy](https://github.com/ChristianMurphy).
