UNPKG

class-validator

Version:

Decorator-based property validation for classes.

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