Interface: ExtensionRule
Properties
| Property | Type | Description |
|---|---|---|
alias? | string | alternative name for this rule. |
args? | (string | RuleArgs)[] | list of arguments accepted by method. |
convert? | boolean | Dual rule: converts or validates. |
manifest? | boolean | - |
method? | false | RuleMethod | rule body. |
multi? | boolean | whether rule supports multiple invocations. |
priority? | boolean | undocumented flags. |
Methods
validate()?
ts
optional validate(
value: any,
helpers: any,
args: Record<string, any>,
options: any): any;validation function.
Parameters
| Parameter | Type |
|---|---|
value | any |
helpers | any |
args | Record<string, any> |
options | any |
Returns
any