fix(types): add missing listeners type on RenderContext (#7584)

This commit is contained in:
katashin 2018-03-09 01:52:01 +09:00 committed by Evan You
parent dc97a39c2f
commit db1b18ceec
2 changed files with 2 additions and 0 deletions

1
types/options.d.ts vendored
View File

@ -119,6 +119,7 @@ export interface RenderContext<Props=DefaultProps> {
slots(): any;
data: VNodeData;
parent: Vue;
listeners: { [key: string]: Function | Function[] };
injections: any
}

View File

@ -312,6 +312,7 @@ Vue.component('functional-component', {
context.slots();
context.data;
context.parent;
context.listeners.click;
return createElement("div", {}, context.children);
}
});