declare type VNodeChildren = Array | () => Array | string declare type VNodeComponentOptions = { Ctor: Class, propsData: ?Object, listeners: ?Object, parent: Component, children: ?VNodeChildren, tag?: string } declare interface MountedComponentVNode { componentOptions: VNodeComponentOptions; child: Component; parent: VNode; data: VNodeData; } // interface for vnodes in update modules declare interface VNodeWithData { tag: string; data: VNodeData; children: Array | void; text: void; elm: HTMLElement; ns: string | void; context: Component; key: string | number | void; parent?: VNodeWithData; child?: Component; } declare interface VNodeData { key?: string | number; slot?: string; ref?: string; tag?: string; staticClass?: string; class?: any; style?: Array | Object; show?: true; props?: { [key: string]: any }; attrs?: { [key: string]: string }; domProps?: { [key: string]: any }; staticAttrs?: { [key: string]: string }; hook?: { [key: string]: Function }; on?: ?{ [key: string]: Function | Array }; nativeOn?: { [key: string]: Function | Array }; transition?: Object; inlineTemplate?: { render: Function, staticRenderFns: Array }; directives?: Array; keepAlive?: boolean; } declare type VNodeDirective = { name: string, value?: any, oldValue?: any, arg?: string, modifiers?: { [key: string]: boolean } }