feat(types): expose $vnode

This commit is contained in:
Evan You 2017-07-11 16:46:54 +08:00
parent 11614d63b7
commit 1b7ddd7a35
2 changed files with 2 additions and 0 deletions

View File

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

1
types/vue.d.ts vendored
View File

@ -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;