1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | export declare const ARRAY_UNIQUE = "arrayUnique";
|
3 | export type ArrayUniqueIdentifier<T = any> = (o: T) => any;
|
4 | /**
|
5 | * Checks if all array's values are unique. Comparison for objects is reference-based.
|
6 | * If null or undefined is given then this function returns false.
|
7 | */
|
8 | export declare function arrayUnique(array: unknown[], identifier?: ArrayUniqueIdentifier): boolean;
|
9 | /**
|
10 | * Checks if all array's values are unique. Comparison for objects is reference-based.
|
11 | * If null or undefined is given then this function returns false.
|
12 | */
|
13 | export declare function ArrayUnique<T = any>(identifierOrOptions?: ArrayUniqueIdentifier<T> | ValidationOptions, validationOptions?: ValidationOptions): PropertyDecorator;
|