Skip to content

Commit

Permalink
fix(types): support typing $el as SVGElement (#8809)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaoru Hagihara authored and yyx990803 committed Dec 1, 2018
1 parent 0ba79e2 commit 3cd4af4
Show file tree
Hide file tree
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
Expand Up @@ -19,6 +19,7 @@ class Test extends Vue {
}

// test property reification
$el!: HTMLElement | SVGElement;
$refs!: {
vue: Vue,
element: HTMLInputElement,
Expand Down
2 changes: 1 addition & 1 deletion types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3cd4af4

Please sign in to comment.