UNPKG

707 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2import { ValidationArguments } from '../../validation/ValidationArguments';
3import { ValidatorConstraintInterface } from '../../validation/ValidatorConstraintInterface';
4export interface ValidateByOptions {
5 name: string;
6 constraints?: any[];
7 validator: ValidatorConstraintInterface | Function;
8 async?: boolean;
9}
10export declare function buildMessage(impl: (eachPrefix: string, args?: ValidationArguments) => string, validationOptions?: ValidationOptions): (validationArguments?: ValidationArguments) => string;
11export declare function ValidateBy(options: ValidateByOptions, validationOptions?: ValidationOptions): PropertyDecorator;