Skip to content

Commit 9b63b8b

Browse files
MakisuolachlancollinsBalastrong
authored
feat: export ReactFormApi (#868)
* Update useForm.tsx * feat: export ReactFormApi --------- Co-authored-by: Lachlan Collins <[email protected]> Co-authored-by: Leonardo Montini <[email protected]>
1 parent 8f5615a commit 9b63b8b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/react-form/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * from '@tanstack/form-core'
22

3+
export type { ReactFormApi } from './useForm'
34
export { useForm } from './useForm'
45

56
export type { UseField, FieldComponent } from './useField'

packages/react-form/src/useForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { NodeType } from './types'
1010
/**
1111
* Fields that are added onto the `FormAPI` from `@tanstack/form-core` and returned from `useForm`
1212
*/
13-
interface ReactFormApi<
13+
export interface ReactFormApi<
1414
TFormData,
1515
TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
1616
> {

0 commit comments

Comments
 (0)