• Checks if the given value is a Date object in the future.

    Beware that the behaviour of this check depends on the current time and can thus be difficult to test. In particular, as time goes by the property can become invalid without ever changing its value.

    Example

    // Ensure the value is in the future.
    @FutureDay()
    scheduledFor: Date

    Parameters

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator