1 | import { ValidationError } from './validation/ValidationError';
|
2 | import { ValidatorOptions } from './validation/ValidatorOptions';
|
3 | import { ValidationSchema } from './validation-schema/ValidationSchema';
|
4 | export * from './container';
|
5 | export * from './decorator/decorators';
|
6 | export * from './decorator/ValidationOptions';
|
7 | export * from './validation/ValidatorConstraintInterface';
|
8 | export * from './validation/ValidationError';
|
9 | export * from './validation/ValidatorOptions';
|
10 | export * from './validation/ValidationArguments';
|
11 | export * from './validation/ValidationTypes';
|
12 | export * from './validation/Validator';
|
13 | export * from './validation-schema/ValidationSchema';
|
14 | export * from './register-decorator';
|
15 | export * from './metadata/MetadataStorage';
|
16 |
|
17 |
|
18 |
|
19 | export declare function validate(object: object, validatorOptions?: ValidatorOptions): Promise<ValidationError[]>;
|
20 |
|
21 |
|
22 |
|
23 | export declare function validate(schemaName: string, object: object, validatorOptions?: ValidatorOptions): Promise<ValidationError[]>;
|
24 |
|
25 |
|
26 |
|
27 | export declare function validateOrReject(object: object, validatorOptions?: ValidatorOptions): Promise<void>;
|
28 |
|
29 |
|
30 |
|
31 | export declare function validateOrReject(schemaName: string, object: object, validatorOptions?: ValidatorOptions): Promise<void>;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function validateSync(object: object, validatorOptions?: ValidatorOptions): ValidationError[];
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export declare function validateSync(schemaName: string, object: object, validatorOptions?: ValidatorOptions): ValidationError[];
|
44 |
|
45 |
|
46 |
|
47 | export declare function registerSchema(schema: ValidationSchema): void;
|