← @mortar-kit/core

Fieldtype

import { Field } from '@mortar-kit/core'

type Field<T> = v.GenericSchema<T | undefined, T>

A Mortar field: a Valibot schema whose output is T. The input may be missing (undefined), in which case the field's default is used.