Explorar el Código

fix(typing): relax $options type for TS2.6+ (#6819)

Herrington Darkholme hace 8 años
padre
commit
9caed00d20
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      types/vue.d.ts

+ 1 - 1
types/vue.d.ts

@@ -22,7 +22,7 @@ export interface CreateElement {
 
 export interface Vue {
   readonly $el: HTMLElement;
-  readonly $options: ComponentOptions<this>;
+  readonly $options: ComponentOptions<Vue>;
   readonly $parent: Vue;
   readonly $root: Vue;
   readonly $children: Vue[];