Prechádzať zdrojové kódy

Add TypeScript definition for ssrContext (#5654)

Melvin Lee 9 rokov pred
rodič
commit
92d61922e9
2 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 1 0
      types/test/vue-test.ts
  2. 1 0
      types/vue.d.ts

+ 1 - 0
types/test/vue-test.ts

@@ -13,6 +13,7 @@ class Test extends Vue {
     this.$refs;
     this.$slots;
     this.$isServer;
+    this.$ssrContext;
   }
 
   // test property reification

+ 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;
+  readonly $ssrContext: any;
   readonly $props: any;
 
   $mount(elementOrSelector?: Element | String, hydrating?: boolean): this;