Skip to content

Commit

Permalink
fix: expose SolidFormApi type (#892)
Browse files Browse the repository at this point in the history
* Export `SolidFormApi`

* export `SolidFormApi` from `index.ts`
  • Loading branch information
oscartbeaumont authored Aug 12, 2024
1 parent 23a44f2 commit 9dc4ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/solid-form/src/createForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { FormOptions, FormState, Validator } from '@tanstack/form-core'

type NoInfer<T> = [T][T extends any ? 0 : never]

interface SolidFormApi<
export interface SolidFormApi<
TFormData,
TFormValidator extends Validator<TFormData, unknown> | undefined = undefined,
> {
Expand Down
2 changes: 1 addition & 1 deletion packages/solid-form/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 9dc4ef6

Please sign in to comment.