Skip to content

Commit

Permalink
fix(types): add missing listeners type on RenderContext (#7584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn authored and yyx990803 committed Mar 8, 2018
1 parent dc97a39 commit db1b18c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export interface RenderContext<Props=DefaultProps> {
slots(): any;
data: VNodeData;
parent: Vue;
listeners: { [key: string]: Function | Function[] };
injections: any
}

Expand Down
1 change: 1 addition & 0 deletions types/test/options-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ Vue.component('functional-component', {
context.slots();
context.data;
context.parent;
context.listeners.click;
return createElement("div", {}, context.children);
}
});
Expand Down

0 comments on commit db1b18c

Please sign in to comment.