From 5266591c886422d5265e46e08e1276913d12bed1 Mon Sep 17 00:00:00 2001 From: Amir Reza Dalir Date: Sun, 18 Feb 2024 02:15:15 -0800 Subject: [PATCH] fix(Form): improve `validate` path type (#1370) Co-authored-by: Benjamin Canac --- src/runtime/types/form.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/types/form.d.ts b/src/runtime/types/form.d.ts index 93f62897..b2bf520d 100644 --- a/src/runtime/types/form.d.ts +++ b/src/runtime/types/form.d.ts @@ -10,8 +10,8 @@ export interface FormErrorWithId extends FormError { } export interface Form { - validate(path?: string, opts?: { silent?: true }): Promise; - validate(path?: string, opts?: { silent?: false }): Promise; + validate(path?: string | string[], opts?: { silent?: true }): Promise; + validate(path?: string | string[], opts?: { silent?: false }): Promise; clear(path?: string): void errors: Ref setErrors(errs: FormError[], path?: string): void