1.0.33 • Published 6 months ago
@types/jjv v1.0.33
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
// Type definitions for JJV v1.0.2
// Project: https://github.com/acornejo/jjv
// Definitions by: Wim Looman <https://github.com/Nemo157>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 14:23:36 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Wim Looman.
1.0.33
6 months ago
1.0.32
7 months ago
1.0.31
8 months ago
1.0.30
3 years ago
1.0.29
8 years ago
1.0.28
8 years ago
1.0.27-alpha
8 years ago
1.0.26-alpha
8 years ago
1.0.25-alpha
8 years ago
1.0.24-alpha
8 years ago
1.0.23-alpha
8 years ago
1.0.22-alpha
8 years ago
1.0.21-alpha
8 years ago
1.0.16-alpha
8 years ago
1.0.15-alpha
8 years ago