Browse Source

feat(types): expose $vnode

dev
Evan You 7 years ago
parent
commit
1b7ddd7a35
  1. 1
      types/test/vue-test.ts
  2. 1
      types/vue.d.ts

1
types/test/vue-test.ts

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

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

Loading…
Cancel
Save