From 3cd4af4af0a8a67f5887d5fc967147d433c8612c Mon Sep 17 00:00:00 2001 From: Kaoru Hagihara Date: Sat, 1 Dec 2018 13:30:31 +0900 Subject: [PATCH] fix(types): support typing $el as SVGElement (#8809) --- types/test/vue-test.ts | 1 + types/vue.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/test/vue-test.ts b/types/test/vue-test.ts index 72390b08..d9a8379a 100644 --- a/types/test/vue-test.ts +++ b/types/test/vue-test.ts @@ -19,6 +19,7 @@ class Test extends Vue { } // test property reification + $el!: HTMLElement | SVGElement; $refs!: { vue: Vue, element: HTMLInputElement, diff --git a/types/vue.d.ts b/types/vue.d.ts index 44a892ea..3832f2c9 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -21,7 +21,7 @@ export interface CreateElement { } export interface Vue { - readonly $el: HTMLElement; + readonly $el: Element; readonly $options: ComponentOptions; readonly $parent: Vue; readonly $root: Vue;