# FormConfig

> This document is the Markdown version of [formisch.dev/angular/api/FormConfig/](https://formisch.dev/angular/api/FormConfig/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

Form config interface that defines the configuration options for creating a form store with [`injectForm`](/angular/api/injectForm.md).

## Generics

- `TSchema` `extends FormSchema`

## Definition

- `FormConfig`
  - `schema` `TSchema`
  - `initialInput` `DeepPartial<v.InferInput<TSchema>> | undefined`
  - `emptyInput` `EmptyInput | undefined`
  - `validate` `ValidationMode | undefined`
  - `revalidate` `Exclude<ValidationMode, 'initial'> | undefined`

### Explanation

The `FormConfig` object is passed to [`injectForm`](/angular/api/injectForm.md) with a required `schema` property and optional properties for `initialInput`, `emptyInput`, `validate`, and `revalidate` to control form behavior and validation timing.
