UNPKG

class-validator

Version:

Decorator-based property validation for classes.

11 lines (10 loc) 363 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_ARRAY = "isArray"; /** * Checks if a given value is an array */ export declare function isArray<T = any>(value: unknown): value is Array<T>; /** * Checks if a given value is an array */ export declare function IsArray(validationOptions?: ValidationOptions): PropertyDecorator;