# @types/jsen

> TypeScript definitions for jsen

Latest version **0.0.25** (published 2024-01-25) · MIT license · 0 weekly downloads

## Install

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

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.25 |
| Published | 2024-01-25 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.0.25 (latest) — 2024-01-25
- 0.0.24 (ts4.5) — 2023-11-07
- 0.0.21 (ts3.6) — 2021-07-09
- 0.0.19 (ts2.0) — 2017-08-21
- 0.0.23 — 2023-10-18
- 0.0.22 — 2023-09-15
- 0.0.20 — 2021-07-08
- 0.0.18 — 2016-09-19
- 0.0.17 — 2016-07-14
- 0.0.16-alpha — 2016-07-08
- 0.0.15-alpha — 2016-07-04
- 0.0.14-alpha — 2016-07-02
- 0.0.13-alpha — 2016-07-01
- 0.0.12-alpha — 2016-07-01
- 0.0.11-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/jsen/versions

## README

# Installation
> `npm install --save @types/jsen`

# Summary
This package contains type definitions for jsen (https://github.com/bugventure/jsen).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsen.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsen/index.d.ts)
````ts
declare namespace Jsen {
    export interface JsenFormats {
        [key: string]: string | RegExp | Function;
    }

    export interface JsenSettings {
        missing$Ref?: boolean | undefined;
        greedy?: boolean | undefined;
        formats?: JsenFormats | undefined;
        schemas?: any;
    }

    export interface JsenBuildSettings {
        copy?: boolean | undefined;
        additionalProperties?: boolean | undefined;
    }

    export interface JsenValidator {
        (data?: any): boolean;
        build(initial?: any, options?: JsenBuildSettings): any;
        errors: JsenValidateError[];
    }

    export interface JsenValidateError {
        path: string;
        keyword: string;
        message?: string | undefined;
    }

    export interface JsenUnique {
        (array: any[]): boolean;
        findIndex(array: any[], value: any, comparator: (obj1: any, obj2: any) => boolean): number;
    }

    export interface JsenMain {
        (schema?: any, options?: JsenSettings): JsenValidator;
        clone(data: any): any;
        equal(a: any, b: any): boolean;
        unique: JsenUnique;
    }
}

declare var Jsen: Jsen.JsenMain;
export = Jsen;
export as namespace jsen;

````

### Additional Details
 * Last updated: Thu, 25 Jan 2024 22:35:26 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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