class-validator-extended - v4.2.0
    Preparing search index...

    Function FutureDate

    • 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.

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

      Parameters

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator