diff --git a/packages/react-form/src/index.ts b/packages/react-form/src/index.ts index e35e2c602..f9000b7e2 100644 --- a/packages/react-form/src/index.ts +++ b/packages/react-form/src/index.ts @@ -1,5 +1,6 @@ export * from '@tanstack/form-core' +export type { ReactFormApi } from './useForm' export { useForm } from './useForm' export type { UseField, FieldComponent } from './useField' diff --git a/packages/react-form/src/useForm.tsx b/packages/react-form/src/useForm.tsx index 173a505ad..cab1f19cc 100644 --- a/packages/react-form/src/useForm.tsx +++ b/packages/react-form/src/useForm.tsx @@ -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 | undefined = undefined, > {