diff --git a/types/options.d.ts b/types/options.d.ts index d6f21d4e..dcaf5f5a 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -110,7 +110,7 @@ export interface FunctionalComponentOptions): VNode; + render?(this: undefined, createElement: CreateElement, context: RenderContext): VNode; } export interface RenderContext { diff --git a/types/test/options-test.ts b/types/test/options-test.ts index 82e04882..df03ed78 100644 --- a/types/test/options-test.ts +++ b/types/test/options-test.ts @@ -331,6 +331,10 @@ Vue.component('functional-component-object-inject', { } }) +Vue.component('functional-component-check-optional', { + functional: true +}) + Vue.component("async-component", ((resolve, reject) => { setTimeout(() => { resolve(Vue.component("component"));