Skip to content

Commit

Permalink
fix(types): support typing $el as SVGElement (vuejs#8809)
Browse files Browse the repository at this point in the history
Kaoru Hagihara authored and aJean committed Aug 19, 2020
1 parent b19381e commit c246cc1
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/test/vue-test.ts
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ class Test extends Vue {
}

// test property reification
$el!: HTMLElement | SVGElement;
$refs!: {
vue: Vue,
element: HTMLInputElement,
2 changes: 1 addition & 1 deletion types/vue.d.ts
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ export interface CreateElement {
}

export interface Vue {
readonly $el: HTMLElement;
readonly $el: Element;
readonly $options: ComponentOptions<Vue>;
readonly $parent: Vue;
readonly $root: Vue;

0 comments on commit c246cc1

Please sign in to comment.