|
|
@@ -5,8 +5,7 @@ import {
|
|
|
ComponentOptionsWithArrayProps,
|
|
|
ComponentOptionsWithObjectProps
|
|
|
} from './apiOptions'
|
|
|
-import { SetupContext } from './component'
|
|
|
-import { VNodeChild } from './vnode'
|
|
|
+import { SetupContext, RenderFunction } from './component'
|
|
|
import { ComponentPublicInstance } from './componentProxy'
|
|
|
import { ExtractPropTypes } from './componentProps'
|
|
|
import { isFunction } from '@vue/shared'
|
|
|
@@ -14,7 +13,7 @@ import { isFunction } from '@vue/shared'
|
|
|
// overload 1: direct setup function
|
|
|
// (uses user defined props interface)
|
|
|
export function createComponent<Props, RawBindings = object>(
|
|
|
- setup: (props: Props, ctx: SetupContext) => RawBindings | (() => VNodeChild)
|
|
|
+ setup: (props: Props, ctx: SetupContext) => RawBindings | RenderFunction
|
|
|
): {
|
|
|
new (): ComponentPublicInstance<Props, RawBindings>
|
|
|
}
|