UNPKG

684 BTypeScriptView Raw
1/**
2 * Arguments being sent to message builders - user can create message either by simply returning a string,
3 * either by returning a function that accepts MessageArguments and returns a message string built based on these arguments.
4 */
5export interface ValidationArguments {
6 /**
7 * Validating value.
8 */
9 value: any;
10 /**
11 * Constraints set by this validation type.
12 */
13 constraints: any[];
14 /**
15 * Name of the target that is being validated.
16 */
17 targetName: string;
18 /**
19 * Object that is being validated.
20 */
21 object: object;
22 /**
23 * Name of the object's property being validated.
24 */
25 property: string;
26}