Skip to content

Commit

Permalink
feat: export ReactFormApi (#868)
Browse files Browse the repository at this point in the history
* Update useForm.tsx

* feat: export ReactFormApi

---------

Co-authored-by: Lachlan Collins <[email protected]>
Co-authored-by: Leonardo Montini <[email protected]>
  • Loading branch information
3 people authored Aug 5, 2024
1 parent 8f5615a commit 9b63b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/react-form/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from '@tanstack/form-core'

export type { ReactFormApi } from './useForm'
export { useForm } from './useForm'

export type { UseField, FieldComponent } from './useField'
Expand Down
2 changes: 1 addition & 1 deletion packages/react-form/src/useForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { NodeType } from './types'
/**
* Fields that are added onto the `FormAPI` from `@tanstack/form-core` and returned from `useForm`
*/
interface ReactFormApi<
export interface ReactFormApi<
TFormData,
TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
> {
Expand Down

0 comments on commit 9b63b8b

Please sign in to comment.