UNPKG

class-validator

Version:

Decorator-based property validation for classes.

13 lines (12 loc) 596 B
import { ValidationOptions } from '../ValidationOptions'; export declare const ARRAY_CONTAINS = "arrayContains"; /** * Checks if array contains all values from the given array of values. * If null or undefined is given then this function returns false. */ export declare function arrayContains(array: unknown, values: any[]): boolean; /** * Checks if array contains all values from the given array of values. * If null or undefined is given then this function returns false. */ export declare function ArrayContains(values: any[], validationOptions?: ValidationOptions): PropertyDecorator;