diff --git a/types/options.d.ts b/types/options.d.ts index 1ab02f859..c8e6a4aea 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 b5cdd1943..30980060b 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);