UNPKG

595 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const ARRAY_MAX_SIZE = "arrayMaxSize";
3/**
4 * Checks if the array's length is less or equal to the specified number.
5 * If null or undefined is given then this function returns false.
6 */
7export declare function arrayMaxSize(array: unknown, max: number): boolean;
8/**
9 * Checks if the array's length is less or equal to the specified number.
10 * If null or undefined is given then this function returns false.
11 */
12export declare function ArrayMaxSize(max: number, validationOptions?: ValidationOptions): PropertyDecorator;