From bcab992acb4794baec98015316ab76a16eb8a0d8 Mon Sep 17 00:00:00 2001 From: Gabriel Garcia Date: Fri, 21 Nov 2025 15:45:46 +0100 Subject: [PATCH] fix(typescript) - fix types --- src/form.ts | 2 +- src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/form.ts b/src/form.ts index 314bf5bcf..c2de05816 100644 --- a/src/form.ts +++ b/src/form.ts @@ -10,7 +10,7 @@ import { validateSchema } from './validation/schema' export { LegacyOptions } from './validation/schema' -interface FormResult { +export interface FormResult { fields: Field[] isError: boolean error: string | null diff --git a/src/index.ts b/src/index.ts index 84686fb5b..571b9dd24 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,6 +3,7 @@ export { createHeadlessForm, type CreateHeadlessFormOptions, type FormErrors, + type FormResult, type LegacyOptions, type ValidationResult, } from './form'