From 75a0ac84c924d10fc63d051786677fa4dc89c3ee Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Sun, 7 Apr 2024 13:09:55 +0200 Subject: [PATCH] fix(Form): extend Form<...> type with HTMLFormElement --- src/runtime/types/form.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/types/form.d.ts b/src/runtime/types/form.d.ts index b2bf520d..8a540e5d 100644 --- a/src/runtime/types/form.d.ts +++ b/src/runtime/types/form.d.ts @@ -9,7 +9,7 @@ export interface FormErrorWithId extends FormError { id: string } -export interface Form { +export interface Form extends HTMLFormElement { validate(path?: string | string[], opts?: { silent?: true }): Promise; validate(path?: string | string[], opts?: { silent?: false }): Promise; clear(path?: string): void