Type Alias ValidationEntry
ValidationEntry : {
error?: boolean;
expected?: any[] | Function | Set<any>;
message?: string;
required?: boolean;
test: "array" | "entry" | "entry|array";
type?: string;
}
error?: boolean;
expected?: any[] | Function | Set<any>;
message?: string;
required?: boolean;
test: "array" | "entry" | "entry|array";
type?: string;
}
Type declaration
Optional
error?: booleanWhen true and an error is thrown otherwise a boolean is returned; default: true
Optional
expected?: any[] | Function | Set<any>Optional array, function, or set of expected values to test against.
Optional
message?: stringOptional message to include.
Optional
required?: booleanWhen false if the accessor is missing validation is skipped; default: true
test: "array" | "entry" | "entry|array"
The type of entry / variable to test.
Optional
type?: stringOptionally tests with a typeof check.
Provides data for a validation check.