UNPKG

367 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_ENUM = "isEnum";
3/**
4 * Checks if a given value is an enum
5 */
6export declare function isEnum(value: unknown, entity: any): boolean;
7/**
8 * Checks if a given value is an enum
9 */
10export declare function IsEnum(entity: object, validationOptions?: ValidationOptions): PropertyDecorator;