Skip to content

Interface: ExtensionRule

Properties

PropertyTypeDescription
alias?stringalternative name for this rule.
args?(string | RuleArgs)[]list of arguments accepted by method.
convert?booleanDual rule: converts or validates.
manifest?boolean-
method?false | RuleMethodrule body.
multi?booleanwhether rule supports multiple invocations.
priority?booleanundocumented flags.

Methods

validate()?

ts
optional validate(
   value: any,
   helpers: any,
   args: Record<string, any>,
   options: any): any;

validation function.

Parameters

ParameterType
valueany
helpersany
argsRecord<string, any>
optionsany

Returns

any