DeclaredForm.input
property · packages/form/src/metakit.ts:45
readonly input: {
readonly schema: Schema.Struct<Fields>
}Form / foldkit-form/metakit
interface · packages/form/src/metakit.ts:44
interface DeclaredForm<
Fields extends Schema.Struct.Fields,
Model,
FieldKey extends string,
> {
readonly input: {
readonly schema: Schema.Struct<Fields>
}
readonly partial: (model: Model) => Partial<Schema.Struct.Type<Fields>>
readonly field: (model: Model, key: FieldKey) => FieldValidation.Field<Draft>
}What Declared.of reads from a form: its input Schema, what of it decodes as
it stands, and one key's state as a view shows it.
DeclaredForm.inputproperty · packages/form/src/metakit.ts:45
readonly input: {
readonly schema: Schema.Struct<Fields>
}DeclaredForm.partialproperty · packages/form/src/metakit.ts:46
readonly partial: (model: Model) => Partial<Schema.Struct.Type<Fields>>DeclaredForm.fieldproperty · packages/form/src/metakit.ts:47
readonly field: (model: Model, key: FieldKey) => FieldValidation.Field<Draft>