UNPKG

503 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const ARRAY_NOT_EMPTY = "arrayNotEmpty";
3/**
4 * Checks if given array is not empty.
5 * If null or undefined is given then this function returns false.
6 */
7export declare function arrayNotEmpty(array: unknown): boolean;
8/**
9 * Checks if given array is not empty.
10 * If null or undefined is given then this function returns false.
11 */
12export declare function ArrayNotEmpty(validationOptions?: ValidationOptions): PropertyDecorator;