Procházet zdrojové kódy

add the type of props in typescript definitions

yantene před 9 roky
rodič
revize
ef40d1b7cf
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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;