abolish
Version:
A javascript object validator.
13 lines (12 loc) • 429 B
TypeScript
import type Abolish from "./Abolish";
/**
* Register all validators
* @param abolish
*/
export declare function registerAllValidators<T extends typeof Abolish>(abolish: T): T;
/**
* Register Specific Validators
* @param abolish
* @param validators
*/
export declare function registerValidators<T extends typeof Abolish>(abolish: T, validators: "string" | "array" | "utils" | "object" | "date" | "number"): typeof Abolish;