class-validator
Version:
Decorator-based property validation for classes.
13 lines (12 loc) • 503 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const ARRAY_NOT_EMPTY = "arrayNotEmpty";
/**
* Checks if given array is not empty.
* If null or undefined is given then this function returns false.
*/
export declare function arrayNotEmpty(array: unknown): boolean;
/**
* Checks if given array is not empty.
* If null or undefined is given then this function returns false.
*/
export declare function ArrayNotEmpty(validationOptions?: ValidationOptions): PropertyDecorator;