mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Knockout 3.3 - Components
Added $component and $componentTemplateNodes binding context properties (see http://knockoutjs.com/documentation/binding-context.html). Added ComponentInfo.templateNodes.
This commit is contained in:
Vendored
+5
-2
@@ -121,6 +121,8 @@ interface KnockoutBindingContext {
|
||||
$rawData: any | KnockoutObservable<any>;
|
||||
$index?: KnockoutObservable<number>;
|
||||
$parentContext?: KnockoutBindingContext;
|
||||
$component: any;
|
||||
$componentTemplateNodes: Node[];
|
||||
|
||||
extend(properties: any): any;
|
||||
createChildContext(dataItemOrAccessor: any, dataItemAlias?: any, extendCallback?: Function): any;
|
||||
@@ -603,7 +605,8 @@ declare module KnockoutComponentTypes {
|
||||
}
|
||||
|
||||
interface ComponentInfo {
|
||||
element: any;
|
||||
element: Node;
|
||||
templateNodes: Node[];
|
||||
}
|
||||
|
||||
interface TemplateElement {
|
||||
@@ -641,4 +644,4 @@ declare var ko: KnockoutStatic;
|
||||
|
||||
declare module "knockout" {
|
||||
export = ko;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user