Typedef
| Static Public Summary | ||
| public |
|
|
Static Public
public ValidationEntry: object source
Properties:
| Name | Type | Attribute | Description |
| type | string |
|
Optionally tests with a typeof check. |
| expected | Array<*> | function | Set<*> |
|
Optional array, function, or set of expected values to test against. |
| message | string |
|
Optional message to include. |
| required | boolean |
|
When false if the accessor is missing validation is skipped. |
| error | boolean |
|
When true and error is thrown otherwise a boolean is returned. |