Browse Source

fix(types): support typing $el as SVGElement (#8809)

dev
Kaoru Hagihara 6 years ago
committed by Evan You
parent
commit
3cd4af4af0
  1. 1
      types/test/vue-test.ts
  2. 2
      types/vue.d.ts

1
types/test/vue-test.ts

@ -19,6 +19,7 @@ class Test extends Vue {
}
// test property reification
$el!: HTMLElement | SVGElement;
$refs!: {
vue: Vue,
element: HTMLInputElement,

2
types/vue.d.ts

@ -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;

Loading…
Cancel
Save