RuleFailure.keys
property · packages/form/src/metakit.ts:53
readonly keys: ReadonlyArray<keyof Fields & string>The keys of the form the rule reads: where a view shows it. None when it names none.
Form / foldkit-form/metakit
interface · packages/form/src/metakit.ts:51
interface RuleFailure<Fields extends Schema.Struct.Fields> {
readonly keys: ReadonlyArray<keyof Fields & string>
readonly rule: Expr.Expr<Schema.Struct.Type<Fields>, boolean>
readonly message: Option.Option<string>
}A rule over several keys of the input that the values entered so far break.
RuleFailure.keysproperty · packages/form/src/metakit.ts:53
readonly keys: ReadonlyArray<keyof Fields & string>The keys of the form the rule reads: where a view shows it. None when it names none.
RuleFailure.ruleproperty · packages/form/src/metakit.ts:55
readonly rule: Expr.Expr<Schema.Struct.Type<Fields>, boolean>The rule itself, as Expr.refine wrote it on the input Schema.
RuleFailure.messageproperty · packages/form/src/metakit.ts:57
readonly message: Option.Option<string>The message given with the rule, if any.