Skip to content

Commit

Permalink
feat(types): expose $vnode
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 11, 2017
1 parent 11614d6 commit 1b7ddd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/test/vue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Test extends Vue {
this.$slots;
this.$isServer;
this.$ssrContext;
this.$vnode;
}

// test property reification
Expand Down
1 change: 1 addition & 0 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b7ddd7

Please sign in to comment.