Comparing version 1.2.0 to 1.2.1
export declare function scope(schema: any): Skmatc; | ||
export declare var validators: Validator[]; | ||
export declare function create(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator; | ||
export declare function create(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator; | ||
export declare function validate(validators: Validator[], schema: any, data: any, path?: string): Result; | ||
@@ -17,4 +17,4 @@ export declare function register(validator: Validator); | ||
constructor(skmatc: Skmatc, options?: any); | ||
static create(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator; | ||
static module(handles: (schema: any) => boolean, validate: (schema: any, data: any, path: string) => Result, options?: { name?: string }): Validator; | ||
static create(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator; | ||
static module(handles: (schema: any) => boolean, validate: IValidationHandler, options?: { name?: string }): Validator; | ||
@@ -50,9 +50,7 @@ name: string; | ||
export declare interface IValidationHandler { | ||
(thisArg: { | ||
export declare type IValidationHandler = (this: { | ||
validator: IValidationHandler; | ||
skmatc: Skmatc; | ||
fail(message?: string); | ||
assert(test: boolean, message?: string); | ||
}, schema: any, data: any, path: string): Result; | ||
} | ||
fail(message?: string): Result; | ||
assert(test: boolean, message?: string): Result; | ||
}, schema: any, data: any, path: string) => Result; |
{ | ||
"name": "skmatc", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "Benjamin Pannell <admin@sierrasoftworks.com>", | ||
@@ -5,0 +5,0 @@ "description": "Automatic schematic validation for JavaScript objects", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40051
29
524