浏览代码

add the type of props in typescript definitions

yantene 9 年之前
父节点
当前提交
ef40d1b7cf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      types/vue.d.ts

+ 1 - 0
types/vue.d.ts

@@ -42,6 +42,7 @@ export declare class Vue {
   readonly $slots: { [key: string]: VNode[] };
   readonly $scopedSlots: { [key: string]: ScopedSlot };
   readonly $isServer: boolean;
+  $props: Object;
 
   $mount(elementOrSelector?: Element | String, hydrating?: boolean): this;
   $forceUpdate(): void;