UNPKG

@korbiniankuhn/validator

Version:

Validate object schemas for js, expressjs, angular and mongoose.

33 lines (32 loc) 974 B
export declare const validateBoolean: (value: any, { defaultValue, allowed, required, message, parse, not, only, nullAsUndefined }: { defaultValue: any; allowed: any; required: any; message: any; parse: any; not: any; only: any; nullAsUndefined: any; }) => any; export declare const validateBooleanSync: (value: any, { defaultValue, allowed, required, message, func, parse, not, only, nullAsUndefined }: { defaultValue: any; allowed: any; required: any; message: any; func: any; parse: any; not: any; only: any; nullAsUndefined: any; }) => any; export declare const validateBooleanAsync: (value: any, { defaultValue, allowed, required, message, func, parse, not, only, nullAsUndefined }: { defaultValue: any; allowed: any; required: any; message: any; func: any; parse: any; not: any; only: any; nullAsUndefined: any; }) => Promise<any>;