Explorar el Código

fix(types): improve typing for better completion (#6886)

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

+ 1 - 1
types/vue.d.ts

@@ -61,7 +61,7 @@ export interface Vue {
   $createElement: CreateElement;
 }
 
-export type CombinedVueInstance<Instance extends Vue, Data, Methods, Computed, Props> = Instance & Data & Methods & Computed & Props;
+export type CombinedVueInstance<Instance extends Vue, Data, Methods, Computed, Props> =  Data & Methods & Computed & Props & Instance;
 export type ExtendedVue<Instance extends Vue, Data, Methods, Computed, Props> = VueConstructor<CombinedVueInstance<Instance, Data, Methods, Computed, Props> & Vue>;
 
 export interface VueConstructor<V extends Vue = Vue> {