UNPKG

class-validator

Version:

Decorator-based property validation for classes.

11 lines (10 loc) 455 B
import { ValidationOptions } from '../ValidationOptions'; export declare const MAX_DATE = "maxDate"; /** * Checks if the value is a date that's before the specified date. */ export declare function maxDate(date: unknown, maxDate: Date | (() => Date)): boolean; /** * Checks if the value is a date that's after the specified date. */ export declare function MaxDate(date: Date | (() => Date), validationOptions?: ValidationOptions): PropertyDecorator;