diff --git a/flow/component.js b/flow/component.js index 1cb38e42..ebd5e02e 100644 --- a/flow/component.js +++ b/flow/component.js @@ -41,12 +41,7 @@ declare interface Component { $off: (event?: string, fn?: Function) => Component; $emit: (event: string, ...args: Array) => Component; $nextTick: (fn: Function) => void; - $createElement: ( - tag?: string | Component, - data?: Object, - children?: VNodeChildren, - namespace?: string - ) => VNode; + $createElement: (tag?: string | Component, data?: Object, children?: VNodeChildren) => VNode; // private properties _uid: number; @@ -81,7 +76,8 @@ declare interface Component { _render: () => VNode; __patch__: (a: Element | VNode | void, b: VNode) => any; // createElement - _c: (vnode?: VNode, data?: VNodeData, children?: VNodeChildren) => VNode | void; + // _c is internal that accepts `normalizationType` optimization hint + _c: (vnode?: VNode, data?: VNodeData, children?: VNodeChildren, normalizationType?: number) => VNode | void; // renderStatic _m: (index: number, isInFor?: boolean) => VNode | VNodeChildren; // markOnce