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

    Example

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

    Parameters

    • maximum: number | bigint

      The maximum allowed value.

    • Optional options: ValidationOptions

      Generic class-validator options.

    Returns PropertyDecorator