Skip to content

Commit 2998bbf

Browse files
imyzfyyx990803
authored andcommitted
createElement won't return Array<VNode> (#3574)
1 parent a00170c commit 2998bbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/vdom/create-element.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function createElement (
1212
tag: any,
1313
data: any,
1414
children: any
15-
): VNode | Array<VNode> | void {
15+
): VNode | void {
1616
if (data && (Array.isArray(data) || typeof data !== 'object')) {
1717
children = data
1818
data = undefined
@@ -26,7 +26,7 @@ function _createElement (
2626
tag?: string | Class<Component> | Function | Object,
2727
data?: VNodeData,
2828
children?: VNodeChildren | void
29-
): VNode | Array<VNode> | void {
29+
): VNode | void {
3030
if (data && data.__ob__) {
3131
process.env.NODE_ENV !== 'production' && warn(
3232
`Avoid using observed data object as vnode data: ${JSON.stringify(data)}\n` +

0 commit comments

Comments
 (0)