Fix h() signatures to reflect virtual-hyperscript readme

(I must have misread the jsig file)
This commit is contained in:
Christopher Brown
2015-05-15 13:07:19 -05:00
parent 0faae8ebf7
commit 1e2a1e22e5
+2 -2
View File
@@ -95,8 +95,8 @@ declare module VirtualDOM {
*/
function create(vnode: VText, opts?: {document?: Document, warn?: boolean}): Text;
function create(vnode: VNode | Widget | Thunk, opts?: {document?: Document, warn?: boolean}): Element;
function h(tagName: string, properties: createProperties, ...children: VChild[]): VNode;
function h(tagName: string, ...children: VChild[]): VNode;
function h(tagName: string, properties: createProperties, children: string | VChild[]): VNode;
function h(tagName: string, children: string | VChild[]): VNode;
function diff(left: VTree, right: VTree): VPatch[];
/**
patch() usually just returns rootNode after doing stuff to it, so we want