-
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-form): export
WithFormProps
type (#1235)
* feat(react-form): export `WithFormProps` type * fix(react-form): re-export from barrel index.ts file * ci: apply automated fixes and generate docs --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6c67a26
commit 24dfe42
Showing
5 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
docs/framework/react/reference/interfaces/withformprops.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
id: WithFormProps | ||
title: WithFormProps | ||
--- | ||
|
||
<!-- DO NOT EDIT: this page is autogenerated from the type comments --> | ||
|
||
# Interface: WithFormProps\<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, TFieldComponents, TFormComponents, TRenderProps\> | ||
|
||
Defined in: [packages/react-form/src/createFormHook.tsx:136](https://github.com/TanStack/form/blob/main/packages/react-form/src/createFormHook.tsx#L136) | ||
|
||
## Extends | ||
|
||
- `FormOptions`\<`TFormData`, `TOnMount`, `TOnChange`, `TOnChangeAsync`, `TOnBlur`, `TOnBlurAsync`, `TOnSubmit`, `TOnSubmitAsync`, `TOnServer`, `TSubmitMeta`\> | ||
|
||
## Type Parameters | ||
|
||
• **TFormData** | ||
|
||
• **TOnMount** *extends* `undefined` \| `FormValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnChange** *extends* `undefined` \| `FormValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnChangeAsync** *extends* `undefined` \| `FormAsyncValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnBlur** *extends* `undefined` \| `FormValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnBlurAsync** *extends* `undefined` \| `FormAsyncValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnSubmit** *extends* `undefined` \| `FormValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnSubmitAsync** *extends* `undefined` \| `FormAsyncValidateOrFn`\<`TFormData`\> | ||
|
||
• **TOnServer** *extends* `undefined` \| `FormAsyncValidateOrFn`\<`TFormData`\> | ||
|
||
• **TSubmitMeta** | ||
|
||
• **TFieldComponents** *extends* `Record`\<`string`, `ComponentType`\<`any`\>\> | ||
|
||
• **TFormComponents** *extends* `Record`\<`string`, `ComponentType`\<`any`\>\> | ||
|
||
• **TRenderProps** *extends* `Record`\<`string`, `unknown`\> = `Record`\<`string`, `never`\> | ||
|
||
## Properties | ||
|
||
### props? | ||
|
||
```ts | ||
optional props: TRenderProps; | ||
``` | ||
|
||
Defined in: [packages/react-form/src/createFormHook.tsx:163](https://github.com/TanStack/form/blob/main/packages/react-form/src/createFormHook.tsx#L163) | ||
|
||
*** | ||
|
||
### render() | ||
|
||
```ts | ||
render: (props) => Element; | ||
``` | ||
|
||
Defined in: [packages/react-form/src/createFormHook.tsx:164](https://github.com/TanStack/form/blob/main/packages/react-form/src/createFormHook.tsx#L164) | ||
|
||
#### Parameters | ||
|
||
##### props | ||
|
||
`PropsWithChildren`\<`NoInfer`\<`TRenderProps`\> & `object`\> | ||
|
||
#### Returns | ||
|
||
`Element` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters