Skip to content

API reference > @kontsedal/olas-core > FormOptions

FormOptions type ​

Options for createForm(ctx, schema, options?).

Signature:

typescript
type FormOptions<S extends FormSchema> = {
  initial?: (() => DeepPartial<FormValue<S>> | undefined) | DeepPartial<FormValue<S>>;
  validators?: FormValidator<S>[];
  resetOnInitialChange?: 'when-clean' | 'never' | 'always';
};

References: FormSchema, DeepPartial, FormValue, FormValidator

Released under the MIT License.