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

    Function MaxBigInt

    • Checks if the given value is a BigInt not greater than maximum.

      // Ensure the value is less than 9000.
      @MaxBigInt(8_999)
      underNineThousand: BigInt

      Parameters

      • maximum: number | bigint

        The maximum allowed value.

      • Optionaloptions: ValidationOptions

        Generic class-validator options.

      Returns PropertyDecorator