Musique/node_modules/ow/dist/predicates/date.d.ts

19 lines
437 B
TypeScript

import { Predicate, PredicateOptions } from './predicate';
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;
}