Added types for ko.virtualElements.*

This commit is contained in:
Fyodor Soikin
2013-05-17 11:27:04 -04:00
parent 30f0df4b0f
commit 91bb9c0ad2
+9 -7
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 {