UNPKG

class-validator-extended

Version:
20 lines (19 loc) 654 B
import type { ValidationOptions } from 'class-validator'; /** @hidden */ export declare const MAX_BIGINT = "maxBigInt"; /** * Checks if the given value is a [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) * not greater than `maximum`. * * #### Example * ```typescript * // Ensure the value is less than 9000. * @MaxBigInt(8_999) * underNineThousand: BigInt * ``` * * @category BigInt * @param maximum The maximum allowed value. * @param options Generic class-validator options. */ export declare function MaxBigInt(maximum: number | bigint, options?: ValidationOptions): PropertyDecorator;