Skip to content

Commit cdfb07c

Browse files
committed
Add TypeScript definition for ssrContext
1 parent e3ffa10 commit cdfb07c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

types/test/vue-test.ts

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)