Merge pull request #558 from fsoikin/KO-virtual-elements

Added types for ko.virtualElements.*
This commit is contained in:
Boris Yankov
2013-05-19 12:05:10 -07:00

View File

@@ -224,14 +224,16 @@ interface KnockoutMemoization {
parseMemoText(memoText);
}
interface KnockoutVirtualElement {}
interface KnockoutVirtualElements {
allowedBindings;
emptyNode;
firstChild;
insertAfter;
nextSibling;
prepend;
setDomNodeChildren;
allowedBindings: { [bindingName: string]: bool; };
emptyNode( e: KnockoutVirtualElement );
firstChild( e: KnockoutVirtualElement );
insertAfter( container: KnockoutVirtualElement, nodeToInsert: HTMLElement, insertAfter: HTMLElement );
nextSibling( e: KnockoutVirtualElement );
prepend( e: KnockoutVirtualElement, toInsert: HTMLElement );
setDomNodeChildren( e: KnockoutVirtualElement, newChildren: { length: number;[index: number]: HTMLElement; } );
}
interface KnockoutExtenders {