UNPKG

ow

Version:

Function argument validation for humans

20 lines (17 loc) 498 B
import { Predicate, type PredicateOptions, type Validator } from './predicate.js'; export declare class DatePredicate extends Predicate<Date> { /** @hidden */ constructor(options?: PredicateOptions, validators?: Array<Validator<Date>>); /** Test a date to be before another date. @param date - Maximum value. */ before(date: Date): this; /** Test a date to be before another date. @param date - Minimum value. */ after(date: Date): this; }