Skip to content

Commit

Permalink
feat: expose listeners on context
Browse files Browse the repository at this point in the history
close #128, #132

so far missing tests
  • Loading branch information
LinusBorg committed Sep 17, 2019
1 parent ce51ec0 commit fbcb3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function mixin(Vue: VueConstructor) {
const ctx = {
slots: {},
} as SetupContext;
const props: Array<string | [string, string]> = ['root', 'parent', 'refs', 'attrs'];
const props: Array<string | [string, string]> = ['root', 'parent', 'refs', 'attrs', 'listeners'];
const methodReturnVoid = ['emit'];
props.forEach(key => {
let targetKey: string;
Expand Down

0 comments on commit fbcb3f8

Please sign in to comment.