1 |
|
2 | import { IValidationRule } from './IValidationRule';
|
3 | import { Schema } from './Schema';
|
4 | import { ValidationResult } from './ValidationResult';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class ExcludedRule implements IValidationRule {
|
19 | private readonly _values;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 | constructor(...values: any[]);
|
26 | /**
|
27 | * Validates the given value. None of the values set in this ExcludedRule object must exist
|
28 | * in the value that is given for validation to pass.
|
29 | *
|
30 | * @param path the dot notation path to the value that is to be validated.
|
31 | * @param schema (not used in this implementation).
|
32 | * @param value the value that is to be validated.
|
33 | * @param results the results of the validation.
|
34 | */
|
35 | validate(path: string, schema: Schema, value: any, results: ValidationResult[]): void;
|
36 | }
|