UNPKG

412 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const MAX = "max";
3/**
4 * Checks if the first number is less than or equal to the second.
5 */
6export declare function max(num: unknown, max: number): boolean;
7/**
8 * Checks if the first number is less than or equal to the second.
9 */
10export declare function Max(maxValue: number, validationOptions?: ValidationOptions): PropertyDecorator;