UNPKG

nowjs-core

Version:

NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence

11 lines (10 loc) 606 B
import { StringFormatType } from '../../utils/index'; import { ValidationContext, ValidatorBase } from '../index'; export declare const VALIDATOR_IN_METADATA_KEY: unique symbol; export declare function isIn(values: any[], errorMessage?: StringFormatType): (target: Record<string, any>, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => void; export declare class InValidator extends ValidatorBase { private values; constructor(values: any[], errorMessage?: StringFormatType); get Values(): any[]; validate(context: ValidationContext<any, any>): Promise<boolean>; }