From 200c611cda5412a50449ab25c44eff655e2556cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Csupity?= Date: Fri, 4 Oct 2024 14:07:25 +0200 Subject: [PATCH 1/2] feat(useField): export VueFieldApi interface --- packages/vue-form/src/useField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-form/src/useField.tsx b/packages/vue-form/src/useField.tsx index 7ae7ca1bc..059f3c17e 100644 --- a/packages/vue-form/src/useField.tsx +++ b/packages/vue-form/src/useField.tsx @@ -5,7 +5,7 @@ import type { DeepKeys, DeepValue, Validator } from '@tanstack/form-core' import type { Ref, SetupContext, SlotsType } from 'vue' import type { UseFieldOptions } from './types' -interface VueFieldApi< +export interface VueFieldApi< TParentData, TFormValidator extends | Validator From 3e047352176cbdab25d9df904aaee7a644f6ed53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Csupity?= Date: Fri, 4 Oct 2024 14:07:35 +0200 Subject: [PATCH 2/2] feat(useForm): export VueFormApi interface --- packages/vue-form/src/useForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-form/src/useForm.tsx b/packages/vue-form/src/useForm.tsx index 3b1f1589f..f9012ccb1 100644 --- a/packages/vue-form/src/useForm.tsx +++ b/packages/vue-form/src/useForm.tsx @@ -7,7 +7,7 @@ import type { NoInfer } from '@tanstack/vue-store' import type { EmitsOptions, Ref, SetupContext, SlotsType } from 'vue' import type { FieldComponent, UseField } from './useField' -interface VueFormApi< +export interface VueFormApi< TFormData, TFormValidator extends Validator | undefined = undefined, > {