# @types/jjv

> TypeScript definitions for jjv

Latest version **1.0.33** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/jjv
pnpm add @types/jjv
yarn add @types/jjv
bun add @types/jjv
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.33 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51420 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/jjv
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jjv
- npm.io page: https://npm.io/package/@types/jjv

## Recent versions

- 1.0.33 (latest) — 2023-11-07
- 1.0.30 (ts3.6) — 2021-07-08
- 1.0.29 (ts2.0) — 2016-09-19
- 1.0.32 — 2023-10-18
- 1.0.31 — 2023-09-15
- 1.0.28 — 2016-07-14
- 1.0.27-alpha — 2016-07-08
- 1.0.26-alpha — 2016-07-04
- 1.0.25-alpha — 2016-07-02
- 1.0.24-alpha — 2016-07-01
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-05-25
- 1.0.21-alpha — 2016-05-20
- 1.0.16-alpha — 2016-05-19
- 1.0.15-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/jjv`

# Summary
This package contains type definitions for jjv (https://github.com/acornejo/jjv).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jjv.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jjv/index.d.ts)
````ts
declare function jjv(): jjv.Env;

declare namespace jjv {
    interface Errors {
        validation: {
            [property: string]: {
                required?: boolean | undefined;
                type?: string | undefined;
            };
        };
    }

    interface Options {
        checkRequired?: boolean | undefined;
        useDefault?: boolean | undefined;
        useCoerce?: boolean | undefined;
        removeAdditional?: boolean | undefined;
    }

    interface Env {
        defaultOptions: Options;

        addSchema(name: string, schema: Object): void;

        addType(name: string, parse: (input: any) => any): void;
        addFormat(name: string, parse: (input: any) => any): void;
        addCheck(name: string, check: (input: any, comparator: any) => any): void;
        addTypeCoercion(name: string, coerce: (input: any) => any): void;

        validate(name: string, object: any, options?: Options): Errors;
        validate(schema: Object, object: any, options?: Options): Errors;
    }
}

export = jjv;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Wim Looman](https://github.com/Nemo157).

---
_Source: https://npm.io/package/@types/jjv · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
