Skip to main content
Formisch bound to one recoverable Bijection operation request. Formisch owns live input, fields, schema validation and its error presentation; Bijection owns the durable draft, the captured request, retries and recovery.

Type Aliases

Op

Ƭ Op: OperationReference<"public", any, any> Not exported: an exported type refers to it.

FormischInput

Ƭ FormischInput<TSchema>: PartialValues<v.InferInput<TSchema>> Formisch’s editable input: possibly incomplete, so an unfilled field is absent rather than a validated value.

Type parameters


Retained

Ƭ Retained<T>: T extends Value ? T : never Not exported: an exported type refers to it.

Type parameters


FormischBindingOptions

Ƭ FormischBindingOptions<O, TSchema>: Omit<UseOperationBindingOptions<O, Retained<FormischInput<TSchema>>, v.InferOutput<TSchema>>, "editor"> & { form: FormConfig<TSchema> }

Type parameters

Functions

useFormischBinding

▸ useFormischBinding<O, TSchema>(operation, options): Object Create a Formisch form and bind it to one recoverable operation request. form is Formisch’s own store: render its Fields and call its methods as usual. Formisch documents no change subscription, so the binding observes the whole input as the component that calls this hook renders; the binding also reads the input directly before every attempt and capture. A validator exception is reported by Formisch as a form error and reaches the binding as invalid input.

Type parameters

Parameters

Returns

Object