UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

17 lines (16 loc) 904 B
import { Schema, RefinableSchema, TransformableSchema, DefaultableSchema, NullableSchema, PredicateSchema, CustomErrorsSchema } from '../types'; /** * Date schema interface */ export interface DateSchema extends Schema<Date>, RefinableSchema<Date, DateSchema>, TransformableSchema<Date, DateSchema>, DefaultableSchema<Date, DateSchema>, NullableSchema<Date, DateSchema>, PredicateSchema<Date, DateSchema>, CustomErrorsSchema<Date, DateSchema> { readonly _tag: 'DateSchema'; readonly min: (min: Date | string | number, message?: string) => DateSchema; readonly max: (max: Date | string | number, message?: string) => DateSchema; readonly future: (message?: string) => DateSchema; readonly past: (message?: string) => DateSchema; readonly format: (formatter: (date: Date) => string) => Schema<string>; } /** * Create a date schema */ export declare function date(): DateSchema;