浏览代码

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

Herrington Darkholme 8 年之前
父节点
当前提交
98ea0a3b48
共有 1 个文件被更改,包括 1 次插入1 次删除
  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> {