diff --git a/types/options.d.ts b/types/options.d.ts index a54993fff5d..d6f21d4ee74 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 a14560fe1b3..82e04882139 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); } });