Skip to content

Commit

Permalink
ci: apply automated fixes and generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 9, 2025
1 parent c07c33b commit 56c1e02
Show file tree
Hide file tree
Showing 15 changed files with 101 additions and 69 deletions.
64 changes: 32 additions & 32 deletions docs/reference/classes/formapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ Constructs a new `FormApi` instance with the given form options.
#### Defined in
[packages/form-core/src/FormApi.ts:678](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L678)
[packages/form-core/src/FormApi.ts:680](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L680)
## Properties
### baseStore
```ts
baseStore: Store<BaseFormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn>, (cb) => BaseFormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn>>;
baseStore: Store<BaseFormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn, undefined>, (cb) => BaseFormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn, undefined>>;
```
#### Defined in
[packages/form-core/src/FormApi.ts:635](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L635)
[packages/form-core/src/FormApi.ts:637](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L637)
***
Expand All @@ -79,7 +79,7 @@ A record of field information for each field in the form.
#### Defined in
[packages/form-core/src/FormApi.ts:663](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L663)
[packages/form-core/src/FormApi.ts:665](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L665)
***
Expand All @@ -91,7 +91,7 @@ fieldMetaDerived: Derived<Record<unknown extends TFormData ? string : TFormData
#### Defined in
[packages/form-core/src/FormApi.ts:647](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L647)
[packages/form-core/src/FormApi.ts:649](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L649)
***
Expand All @@ -105,19 +105,19 @@ The options for the form.
#### Defined in
[packages/form-core/src/FormApi.ts:624](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L624)
[packages/form-core/src/FormApi.ts:626](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L626)
***
### store
```ts
store: Derived<FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn>, readonly any[]>;
store: Derived<FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn, undefined>, readonly any[]>;
```
#### Defined in
[packages/form-core/src/FormApi.ts:648](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L648)
[packages/form-core/src/FormApi.ts:650](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L650)
## Accessors
Expand All @@ -126,16 +126,16 @@ store: Derived<FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAs
#### Get Signature
```ts
get state(): FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn>
get state(): FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn, undefined>
```
##### Returns
[`FormState`](../type-aliases/formstate.md)\<`TFormData`, `TOnMountReturn`, `TOnChangeReturn`, `TOnChangeAsyncReturn`, `TOnBlurReturn`, `TOnBlurAsyncReturn`, `TOnSubmitReturn`, `TOnSubmitAsyncReturn`\>
[`FormState`](../type-aliases/formstate.md)\<`TFormData`, `TOnMountReturn`, `TOnChangeReturn`, `TOnChangeAsyncReturn`, `TOnBlurReturn`, `TOnBlurAsyncReturn`, `TOnSubmitReturn`, `TOnSubmitAsyncReturn`, `undefined`\>
#### Defined in
[packages/form-core/src/FormApi.ts:666](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L666)
[packages/form-core/src/FormApi.ts:668](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L668)
## Methods
Expand All @@ -161,7 +161,7 @@ deleteField<TField>(field): void
#### Defined in
[packages/form-core/src/FormApi.ts:1587](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1587)
[packages/form-core/src/FormApi.ts:1589](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1589)
***
Expand Down Expand Up @@ -189,7 +189,7 @@ Gets the field info of the specified field.
#### Defined in
[packages/form-core/src/FormApi.ts:1496](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1496)
[packages/form-core/src/FormApi.ts:1498](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1498)
***
Expand Down Expand Up @@ -217,7 +217,7 @@ Gets the metadata of the specified field.
#### Defined in
[packages/form-core/src/FormApi.ts:1487](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1487)
[packages/form-core/src/FormApi.ts:1489](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1489)
***
Expand Down Expand Up @@ -245,7 +245,7 @@ Gets the value of the specified field.
#### Defined in
[packages/form-core/src/FormApi.ts:1480](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1480)
[packages/form-core/src/FormApi.ts:1482](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1482)
***
Expand All @@ -263,7 +263,7 @@ Handles the form submission, performs validation, and calls the appropriate onSu
#### Defined in
[packages/form-core/src/FormApi.ts:1421](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1421)
[packages/form-core/src/FormApi.ts:1423](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1423)
***
Expand Down Expand Up @@ -307,7 +307,7 @@ Inserts a value into an array field at the specified index, shifting the subsequ
#### Defined in
[packages/form-core/src/FormApi.ts:1619](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1619)
[packages/form-core/src/FormApi.ts:1621](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1621)
***
Expand All @@ -327,7 +327,7 @@ mount(): () => void
#### Defined in
[packages/form-core/src/FormApi.ts:930](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L930)
[packages/form-core/src/FormApi.ts:932](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L932)
***
Expand Down Expand Up @@ -371,7 +371,7 @@ Moves the value at the first specified index to the second specified index withi
#### Defined in
[packages/form-core/src/FormApi.ts:1737](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1737)
[packages/form-core/src/FormApi.ts:1739](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1739)
***
Expand Down Expand Up @@ -410,7 +410,7 @@ Pushes a value into an array field.
#### Defined in
[packages/form-core/src/FormApi.ts:1601](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1601)
[packages/form-core/src/FormApi.ts:1603](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1603)
***
Expand Down Expand Up @@ -449,7 +449,7 @@ Removes a value from an array field at the specified index.
#### Defined in
[packages/form-core/src/FormApi.ts:1672](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1672)
[packages/form-core/src/FormApi.ts:1674](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1674)
***
Expand Down Expand Up @@ -493,7 +493,7 @@ Replaces a value into an array field at the specified index.
#### Defined in
[packages/form-core/src/FormApi.ts:1646](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1646)
[packages/form-core/src/FormApi.ts:1648](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1648)
***
Expand Down Expand Up @@ -528,7 +528,7 @@ Optional options to control the reset behavior.
#### Defined in
[packages/form-core/src/FormApi.ts:1003](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1003)
[packages/form-core/src/FormApi.ts:1005](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1005)
***
Expand All @@ -554,7 +554,7 @@ resetFieldMeta<TField>(fieldMeta): Record<TField, FieldMeta>
#### Defined in
[packages/form-core/src/FormApi.ts:1533](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1533)
[packages/form-core/src/FormApi.ts:1535](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1535)
***
Expand All @@ -578,7 +578,7 @@ Updates the form's errorMap
#### Defined in
[packages/form-core/src/FormApi.ts:1761](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1761)
[packages/form-core/src/FormApi.ts:1763](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1763)
***
Expand Down Expand Up @@ -610,7 +610,7 @@ Updates the metadata of the specified field.
#### Defined in
[packages/form-core/src/FormApi.ts:1515](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1515)
[packages/form-core/src/FormApi.ts:1517](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1517)
***
Expand Down Expand Up @@ -649,7 +649,7 @@ Sets the value of the specified field and optionally updates the touched state.
#### Defined in
[packages/form-core/src/FormApi.ts:1557](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1557)
[packages/form-core/src/FormApi.ts:1559](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1559)
***
Expand Down Expand Up @@ -693,7 +693,7 @@ Swaps the values at the specified indices within an array field.
#### Defined in
[packages/form-core/src/FormApi.ts:1711](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1711)
[packages/form-core/src/FormApi.ts:1713](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1713)
***
Expand All @@ -717,7 +717,7 @@ Updates the form options and form state.
#### Defined in
[packages/form-core/src/FormApi.ts:947](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L947)
[packages/form-core/src/FormApi.ts:949](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L949)
***
Expand All @@ -741,7 +741,7 @@ Validates form and all fields in using the correct handlers for a given validati
#### Defined in
[packages/form-core/src/FormApi.ts:1029](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1029)
[packages/form-core/src/FormApi.ts:1031](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1031)
***
Expand Down Expand Up @@ -780,7 +780,7 @@ Validates the children of a specified array in the form starting from a given in
#### Defined in
[packages/form-core/src/FormApi.ts:1057](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1057)
[packages/form-core/src/FormApi.ts:1059](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1059)
***
Expand Down Expand Up @@ -812,4 +812,4 @@ Validates a specified field in the form using the correct handlers for a given v
#### Defined in
[packages/form-core/src/FormApi.ts:1096](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1096)
[packages/form-core/src/FormApi.ts:1098](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L1098)
24 changes: 24 additions & 0 deletions docs/reference/functions/isformvalidationerror.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
id: isFormValidationError
title: isFormValidationError
---

# Function: isFormValidationError()

```ts
function isFormValidationError(error): error is SpecialFormValidationError<unknown>
```

## Parameters

### error

`unknown`

## Returns

`error is SpecialFormValidationError<unknown>`

## Defined in

[packages/form-core/src/utils.ts:328](https://github.com/TanStack/form/blob/main/packages/form-core/src/utils.ts#L328)
2 changes: 1 addition & 1 deletion docs/reference/functions/mergeform.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function mergeForm<TFormData, TFormValidator>(baseForm, state): FormApi<NoInfer<

### state

`Partial`\<[`FormState`](../type-aliases/formstate.md)\<`TFormData`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`\>\>
`Partial`\<[`FormState`](../type-aliases/formstate.md)\<`TFormData`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`, `undefined`\>\>

## Returns

Expand Down
1 change: 1 addition & 0 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ title: "@tanstack/form-core"
## Functions

- [formOptions](functions/formoptions.md)
- [isFormValidationError](functions/isformvalidationerror.md)
- [isStandardSchemaValidator](functions/isstandardschemavalidator.md)
- [mergeForm](functions/mergeform.md)
- [standardSchemaValidator](functions/standardschemavalidator.md)
20 changes: 10 additions & 10 deletions docs/reference/interfaces/formoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If true, always run async validation, even when sync validation has produced an

#### Defined in

[packages/form-core/src/FormApi.ts:276](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L276)
[packages/form-core/src/FormApi.ts:277](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L277)

***

Expand All @@ -53,21 +53,21 @@ Optional time in milliseconds if you want to introduce a delay before firing off

#### Defined in

[packages/form-core/src/FormApi.ts:280](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L280)
[packages/form-core/src/FormApi.ts:281](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L281)

***

### defaultState?

```ts
optional defaultState: Partial<FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn>>;
optional defaultState: Partial<FormState<TFormData, TOnMountReturn, TOnChangeReturn, TOnChangeAsyncReturn, TOnBlurReturn, TOnBlurAsyncReturn, TOnSubmitReturn, TOnSubmitAsyncReturn, undefined>>;
```

The default state for the form.

#### Defined in

[packages/form-core/src/FormApi.ts:261](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L261)
[packages/form-core/src/FormApi.ts:262](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L262)

***

Expand All @@ -81,7 +81,7 @@ Set initial values for your form.

#### Defined in

[packages/form-core/src/FormApi.ts:257](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L257)
[packages/form-core/src/FormApi.ts:258](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L258)

***

Expand Down Expand Up @@ -111,7 +111,7 @@ A function to be called when the form is submitted, what should happen once the

#### Defined in

[packages/form-core/src/FormApi.ts:302](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L302)
[packages/form-core/src/FormApi.ts:303](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L303)

***

Expand Down Expand Up @@ -141,7 +141,7 @@ Specify an action for scenarios where the user tries to submit an invalid form.

#### Defined in

[packages/form-core/src/FormApi.ts:319](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L319)
[packages/form-core/src/FormApi.ts:320](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L320)

***

Expand All @@ -153,7 +153,7 @@ optional transform: FormTransform<TFormData, TFormValidator, TOnMountReturn, TOn

#### Defined in

[packages/form-core/src/FormApi.ts:333](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L333)
[packages/form-core/src/FormApi.ts:334](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L334)

***

Expand All @@ -167,7 +167,7 @@ A validator adapter to support usage of extra validation types (IE: Zod, Yup, or

#### Defined in

[packages/form-core/src/FormApi.ts:284](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L284)
[packages/form-core/src/FormApi.ts:285](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L285)

***

Expand All @@ -181,4 +181,4 @@ A list of validators to pass to the form

#### Defined in

[packages/form-core/src/FormApi.ts:288](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L288)
[packages/form-core/src/FormApi.ts:289](https://github.com/TanStack/form/blob/main/packages/form-core/src/FormApi.ts#L289)
Loading

0 comments on commit 56c1e02

Please sign in to comment.