Skip to content

Commit 1b7ddd7

Browse files
committed
feat(types): expose $vnode
1 parent 11614d6 commit 1b7ddd7

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
@@ -14,6 +14,7 @@ class Test extends Vue {
1414
this.$slots;
1515
this.$isServer;
1616
this.$ssrContext;
17+
this.$vnode;
1718
}
1819

1920
// test property reification

types/vue.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export declare class Vue {
4444
readonly $isServer: boolean;
4545
readonly $ssrContext: any;
4646
readonly $props: any;
47+
readonly $vnode: VNode;
4748

4849
$mount(elementOrSelector?: Element | String, hydrating?: boolean): this;
4950
$forceUpdate(): void;

0 commit comments

Comments
 (0)