diff --git a/types/options.d.ts b/types/options.d.ts index a54993ff..d6f21d4e 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -119,6 +119,7 @@ export interface RenderContext { slots(): any; data: VNodeData; parent: Vue; + listeners: { [key: string]: Function | Function[] }; injections: any } diff --git a/types/test/options-test.ts b/types/test/options-test.ts index a14560fe..82e04882 100644 --- a/types/test/options-test.ts +++ b/types/test/options-test.ts @@ -312,6 +312,7 @@ Vue.component('functional-component', { context.slots(); context.data; context.parent; + context.listeners.click; return createElement("div", {}, context.children); } });