RockPaperScissors/node_modules/ow/dist/predicates/date.d.ts
2021-11-30 22:03:51 +01:00

20 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;
}