From 1b7ddd7a35fab8773508ed47f56d0716081cfa1a Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 11 Jul 2017 16:46:54 +0800 Subject: [PATCH] feat(types): expose $vnode --- types/test/vue-test.ts | 1 + types/vue.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/test/vue-test.ts b/types/test/vue-test.ts index b16e5847..50605998 100644 --- a/types/test/vue-test.ts +++ b/types/test/vue-test.ts @@ -14,6 +14,7 @@ class Test extends Vue { this.$slots; this.$isServer; this.$ssrContext; + this.$vnode; } // test property reification diff --git a/types/vue.d.ts b/types/vue.d.ts index 2ca8122d..8f1c3c53 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -44,6 +44,7 @@ export declare class Vue { readonly $isServer: boolean; readonly $ssrContext: any; readonly $props: any; + readonly $vnode: VNode; $mount(elementOrSelector?: Element | String, hydrating?: boolean): this; $forceUpdate(): void;