1 | import { ValidationMetadata } from './ValidationMetadata';
|
2 | import { ConstraintMetadata } from './ConstraintMetadata';
|
3 | import { ValidationSchema } from '../validation-schema/ValidationSchema';
|
4 |
|
5 |
|
6 |
|
7 | export declare class MetadataStorage {
|
8 | private validationMetadatas;
|
9 | private constraintMetadatas;
|
10 | get hasValidationMetaData(): boolean;
|
11 | |
12 |
|
13 |
|
14 | addValidationSchema(schema: ValidationSchema): void;
|
15 | |
16 |
|
17 |
|
18 | addValidationMetadata(metadata: ValidationMetadata): void;
|
19 | |
20 |
|
21 |
|
22 | addConstraintMetadata(metadata: ConstraintMetadata): void;
|
23 | |
24 |
|
25 |
|
26 | groupByPropertyName(metadata: ValidationMetadata[]): {
|
27 | [propertyName: string]: ValidationMetadata[];
|
28 | };
|
29 | |
30 |
|
31 |
|
32 | getTargetValidationMetadatas(targetConstructor: Function, targetSchema: string, always: boolean, strictGroups: boolean, groups?: string[]): ValidationMetadata[];
|
33 | |
34 |
|
35 |
|
36 | getTargetValidatorConstraints(target: Function): ConstraintMetadata[];
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | export declare function getMetadataStorage(): MetadataStorage;
|