mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Merge pull request #558 from fsoikin/KO-virtual-elements
Added types for ko.virtualElements.*
This commit is contained in:
16
knockout/knockout.d.ts
vendored
16
knockout/knockout.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user