UNPKG

430 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_IN = "isIn";
3/**
4 * Checks if given value is in a array of allowed values.
5 */
6export declare function isIn(value: unknown, possibleValues: readonly unknown[]): boolean;
7/**
8 * Checks if given value is in a array of allowed values.
9 */
10export declare function IsIn(values: readonly any[], validationOptions?: ValidationOptions): PropertyDecorator;