Skip to content

Commit dacd0cf

Browse files
committed
createElement flow type correction
1 parent 451ea37 commit dacd0cf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: flow/component.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ declare interface Component {
4141
$off: (event?: string, fn?: Function) => Component;
4242
$emit: (event: string, ...args: Array<mixed>) => Component;
4343
$nextTick: (fn: Function) => void;
44-
$createElement: (
45-
tag?: string | Component,
46-
data?: Object,
47-
children?: VNodeChildren,
48-
namespace?: string
49-
) => VNode;
44+
$createElement: (tag?: string | Component, data?: Object, children?: VNodeChildren) => VNode;
5045

5146
// private properties
5247
_uid: number;
@@ -81,7 +76,8 @@ declare interface Component {
8176
_render: () => VNode;
8277
__patch__: (a: Element | VNode | void, b: VNode) => any;
8378
// createElement
84-
_c: (vnode?: VNode, data?: VNodeData, children?: VNodeChildren) => VNode | void;
79+
// _c is internal that accepts `normalizationType` optimization hint
80+
_c: (vnode?: VNode, data?: VNodeData, children?: VNodeChildren, normalizationType?: number) => VNode | void;
8581
// renderStatic
8682
_m: (index: number, isInFor?: boolean) => VNode | VNodeChildren;
8783
// markOnce

0 commit comments

Comments
 (0)