Form / foldkit-form/metakit

Constraint

interface · packages/form/src/metakit.ts:35

interface Constraint<Key extends string> extends Omit<FieldSpec, 'name'> {
  readonly key: Key
  readonly attributes: InputAttributes
}

One key's declaration as Inspect.fieldSpecs reads it from the input's Schema (its bounds, literals and domain type), with the input attributes that follow from it.

Members

Constraint.key

property · packages/form/src/metakit.ts:36

readonly key: Key

Constraint.attributes

property · packages/form/src/metakit.ts:37

readonly attributes: InputAttributes