@korbiniankuhn/validator
Version:
Validate object schemas for js, expressjs, angular and mongoose.
42 lines (41 loc) • 1.15 kB
TypeScript
export declare const validateDate: (value: any, { defaultValue, allowed, required, message, parse, utc, min, max, only, not, nullAsUndefined }: {
defaultValue: any;
allowed: any;
required: any;
message: any;
parse: any;
utc: any;
min: any;
max: any;
only: any;
not: any;
nullAsUndefined: any;
}) => any;
export declare const validateDateSync: (value: any, { defaultValue, allowed, required, message, parse, utc, min, max, only, not, func, nullAsUndefined }: {
defaultValue: any;
allowed: any;
required: any;
message: any;
parse: any;
utc: any;
min: any;
max: any;
only: any;
not: any;
func: any;
nullAsUndefined: any;
}) => any;
export declare const validateDateAsync: (value: any, { defaultValue, allowed, required, message, parse, utc, min, max, only, not, func, nullAsUndefined }: {
defaultValue: any;
allowed: any;
required: any;
message: any;
parse: any;
utc: any;
min: any;
max: any;
only: any;
not: any;
func: any;
nullAsUndefined: any;
}) => Promise<any>;