Skip to content

Interface: DefineFieldOptions<Schema, Deps> ​

Defined in: core/src/definitions/define-field.ts:27

Options of defineField and defineFieldWithDeps. When schema is a function of the dependencies, write it before validateAsync, or run receives unknown.

Type Parameters ​

Type Parameter
Schema extends StandardSchemaV1
Deps

Properties ​

PropertyModifierTypeDescriptionDefined in
mode?readonlyValidationModeWhen errors become visible for this field. Overrides the form's mode.core/src/definitions/define-field.ts:33
reValidateMode?readonlyReValidateModeWhen this field's errors update after a node that contains it is submitted. Overrides the form's reValidateMode.core/src/definitions/define-field.ts:38
schemareadonlySchemaOption<Schema, Deps>A Standard Schema, or a function that builds one from the dependencies; rebuilt only when they change.core/src/definitions/define-field.ts:29
validateAsync?readonlyAsyncValidationOptions<InferSchemaOutput<Schema>, Deps>A check against something outside the form, such as a server.core/src/definitions/define-field.ts:31

Released under the MIT License.