From fa7de9735754e3dc31c93f89f4e564b97294a171 Mon Sep 17 00:00:00 2001 From: ktsn Date: Thu, 1 Feb 2018 10:59:01 +0900 Subject: [PATCH] fix(types): add missing `listeners` type on RenderContext --- types/options.d.ts | 1 + types/test/options-test.ts | 1 + 2 files changed, 2 insertions(+) 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); } });