From 7d7305bb836e32949668645263c0d77ee73f2e19 Mon Sep 17 00:00:00 2001 From: kaorun343 Date: Fri, 4 Nov 2016 00:22:16 +0900 Subject: [PATCH] fix RenderContext --- types/options.d.ts | 2 +- types/test/options-test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/options.d.ts b/types/options.d.ts index 1ab02f85952..c8e6a4aeaae 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -55,7 +55,7 @@ export interface FunctionalComponentOptions { export interface RenderContext { props: any; children: VNode[]; - slots: any; + slots(): any; data: VNodeData; parent: Vue; } diff --git a/types/test/options-test.ts b/types/test/options-test.ts index b5cdd194384..30980060b4b 100644 --- a/types/test/options-test.ts +++ b/types/test/options-test.ts @@ -166,7 +166,7 @@ Vue.component('functional-component', { render(createElement, context) { context.props; context.children; - context.slots; + context.slots(); context.data; context.parent; return createElement("div", {}, context.children);