Skip to content

API reference > @kontsedal/olas-core > createForm

createForm() function ​

A form aggregating fields, nested forms and field arrays (§8.3).

ts
const form = createForm(ctx, { email, password })

Signature:

typescript
export declare function createForm<S extends FormSchema>(ctx: Ctx, schema: S, options?: FormOptions<S>): Form<S>;

Parameters ​

Parameter

Type

Description

ctx

Ctx

schema

S

options

FormOptions<S>

(Optional)

Returns:

Form<S>

Released under the MIT License.