Skip to content

Commit 9108207

Browse files
committed
annotations for createFunctionalComponent
1 parent d7f42cc commit 9108207

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/core/vdom/create-component.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@ export function createComponent (
8585
return vnode
8686
}
8787

88-
function createFunctionalComponent (Ctor, propsData, data, context, children) {
88+
function createFunctionalComponent (
89+
Ctor: Class<Component>,
90+
propsData: ?Object,
91+
data: VNodeData,
92+
context: Component,
93+
children?: VNodeChildren
94+
): VNode | void {
8995
const props = {}
9096
const propOptions = Ctor.options.props
9197
if (propOptions) {

0 commit comments

Comments
 (0)