Skip to content

Commit 92d6192

Browse files
zymlyyx990803
authored andcommitted
Add TypeScript definition for ssrContext (#5654)
1 parent 8c34f22 commit 92d6192

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

types/test/vue-test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Test extends Vue {
1313
this.$refs;
1414
this.$slots;
1515
this.$isServer;
16+
this.$ssrContext;
1617
}
1718

1819
// test property reification

types/vue.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export declare class Vue {
4242
readonly $slots: { [key: string]: VNode[] };
4343
readonly $scopedSlots: { [key: string]: ScopedSlot };
4444
readonly $isServer: boolean;
45+
readonly $ssrContext: any;
4546
readonly $props: any;
4647

4748
$mount(elementOrSelector?: Element | String, hydrating?: boolean): this;

0 commit comments

Comments
 (0)