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 IncludedRule implements IValidationRule {
|
19 | private readonly _values;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 | constructor(...values: any[]);
|
26 | /**
|
27 | * Validates a given value against this rule.
|
28 | *
|
29 | * @param path a dot notation path to the value.
|
30 | * @param schema a schema this rule is called from
|
31 | * @param value a value to be validated.
|
32 | * @param results a list with validation results to add new results.
|
33 | */
|
34 | validate(path: string, schema: Schema, value: any, results: ValidationResult[]): void;
|
35 | }
|