UNPKG

abolish

Version:

A javascript object validator.

32 lines (31 loc) 1.04 kB
/** * Note: * Only functions related to Abolish Should be added here. */ import type { AbolishSchema } from "./types"; import Abolish from "./Abolish"; import { AbolishSchemaTyped, AbolishSchemaTypedSuper } from "./functions"; /** * Compile a schema object. * @param schema * @param abolish */ export declare function compileSchema(schema: AbolishSchema, abolish?: typeof Abolish): import("./Compiler").AbolishCompiledObject; /** * Compile a rule object. * @param rule * @param abolish */ export declare function compileRule(rule: any, abolish?: typeof Abolish): import("./Compiler").AbolishCompiled; /** * Compile a schema object typed. * @param schema * @param abolish */ export declare function compileSchemaT(schema: AbolishSchemaTyped | AbolishSchemaTypedSuper, abolish?: typeof Abolish): import("./Compiler").AbolishCompiledObject; /** * Compile a rule object typed. * @param rule * @param abolish */ export declare function compileRuleT(rule: any, abolish?: typeof Abolish): import("./Compiler").AbolishCompiled;