UNPKG

ow

Version:

Function argument validation for humans

20 lines (17 loc) 445 B
import { Predicate, type PredicateOptions } from './predicate.js'; export declare class DatePredicate extends Predicate<Date> { /** @hidden */ constructor(options?: PredicateOptions); /** 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; }