Skip to content

API reference > @kontsedal/olas-core > FormSchema

FormSchema type ​

What createForm takes: an object of fields, nested forms and field arrays. Its keys name the form's value, its errors and the paths setErrors takes.

Signature:

typescript
type FormSchema = {
  [key: string]: Field<any> | Form<any> | FieldArray<any>;
};

References: Field, Form, FieldArray

Released under the MIT License.