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;