FormRuleDef
A form rule, as defineFormRule takes it.
Generics
TParamsextends AnyObjectSchema
Definition
FormRuleDefparamsTParams: optional, its params, next torule,fieldandmessagereads(params) => readonly string[]: the paths it reads besidesfieldkindsreadonly ValueKind[]: optional, the kinds the fields may have. Any without itsameKindboolean: optional, true when every field must have the same kindcheck(values: readonly unknown[], params) => boolean: true when the values pass:field's first, then those ofreadsmetaRuleMeta: optional
Explanation
check runs only when none of the fields has an issue of its own or is empty. The issues of other form rules don't count, so their order never changes what a rule reports. See custom rules.