1 | import { ValidatorConstraintInterface } from '../validation/ValidatorConstraintInterface';
|
2 | /**
|
3 | * This metadata interface contains information for custom validators.
|
4 | */
|
5 | export declare class ConstraintMetadata {
|
6 | /**
|
7 | * Target class which performs validation.
|
8 | */
|
9 | target: Function;
|
10 | /**
|
11 | * Custom validation's name, that will be used as validation error type.
|
12 | */
|
13 | name: string;
|
14 | /**
|
15 | * Indicates if this validation is asynchronous or not.
|
16 | */
|
17 | async: boolean;
|
18 | constructor(target: Function, name?: string, async?: boolean);
|
19 | /**
|
20 | * Instance of the target custom validation class which performs validation.
|
21 | */
|
22 | get instance(): ValidatorConstraintInterface;
|
23 | }
|