From ac0383f1fb335bf92c9249f65bf319ca182545b7 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Sat, 11 Mar 2023 17:22:15 +0200 Subject: [PATCH] fix: type inference fix --- packages/vee-validate/src/useForm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vee-validate/src/useForm.ts b/packages/vee-validate/src/useForm.ts index 77126e093..501f627d3 100644 --- a/packages/vee-validate/src/useForm.ts +++ b/packages/vee-validate/src/useForm.ts @@ -37,6 +37,7 @@ import { FieldState, GenericFormValues, TypedSchema, + YupSchema, } from './types'; import { getFromPath, @@ -60,10 +61,10 @@ import { isCallable } from '../../shared'; export interface FormOptions { validationSchema?: MaybeRef< - | TypedSchema | Record + | TypedSchema + | YupSchema | undefined - | any >; initialValues?: MaybeRef; initialErrors?: Record;