Skip to content

KindDef ​

A kind of value, like string or number.

Definition ​

  • KindDef
    • isEmpty (input: unknown) => boolean: true when the input means no value
    • required (message: string) => AnyAction | null: optional, an extra check for required fields, after the normalize rules

Explanation ​

Register kinds of your own with createSchemaBuilder's kinds option. A field type names its kind, so rules for that kind fit it.

Constants ​

Types ​