field
Summary
Creates a schema entry for a single text field from FormData or URLSearchParams.
Signature
function field<schema extends Schema<any, any>>(
schema: schema,
options: FormDataFieldOptions,
): FormDataEntrySchema<InferOutput<schema>>;
Params
schema
options
Parsing options for the field.
Returns
A field schema entry for use with object().