From 3a56de3be02b1c6dd735622b917b6416f0e7ddc8 Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Fri, 8 Nov 2024 11:48:32 +0100 Subject: [PATCH] fix(form): provide typings for $el --- src/runtime/components/Form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/Form.vue b/src/runtime/components/Form.vue index c1890f0f..71e7e956 100644 --- a/src/runtime/components/Form.vue +++ b/src/runtime/components/Form.vue @@ -196,7 +196,7 @@ provide(formOptionsInjectionKey, computed(() => ({ validateOnInputDelay: props.validateOnInputDelay }))) -defineExpose>({ +defineExpose<{ $el: HTMLFormElement | HTMLDivElement } & Form>({ validate: _validate, errors, @@ -230,7 +230,7 @@ defineExpose>({ }, disabled -}) +} as { $el: HTMLFormElement | HTMLDivElement } & Form)