svelidate
Version:
Simple and lightweight form validation for Svelte with no dependencies
41 lines (40 loc) • 2.7 kB
TypeScript
import type { ValidatorGetterParam } from '../types/svelidate/validators';
declare const date: {
required: (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
gt(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
gte(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
lt(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
lte(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
inside(min: Date | ValidatorGetterParam, max: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
outside(min: Date | ValidatorGetterParam, max: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
neq(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
eq(thresholdDate: Date | ValidatorGetterParam): (error?: string) => Readonly<{
js: import('../types/svelidate/validators').JsValidator<unknown>;
html: import('../types/svelidate/validators').HtmlValidatorMapper<import("../types/html").SvelidateInputType>;
}>;
};
export default date;