diff --git a/packages/solid-form/src/createForm.tsx b/packages/solid-form/src/createForm.tsx index 97843f63e..8e7809545 100644 --- a/packages/solid-form/src/createForm.tsx +++ b/packages/solid-form/src/createForm.tsx @@ -11,7 +11,7 @@ import type { FormOptions, FormState, Validator } from '@tanstack/form-core' type NoInfer = [T][T extends any ? 0 : never] -interface SolidFormApi< +export interface SolidFormApi< TFormData, TFormValidator extends Validator | undefined = undefined, > { diff --git a/packages/solid-form/src/index.tsx b/packages/solid-form/src/index.tsx index 3daa18e2b..f0622af1b 100644 --- a/packages/solid-form/src/index.tsx +++ b/packages/solid-form/src/index.tsx @@ -1,6 +1,6 @@ export * from '@tanstack/form-core' -export { createForm } from './createForm' +export { createForm, type SolidFormApi } from './createForm' export type { CreateField, FieldComponent } from './createField' export { createField, Field } from './createField'