From effae55ed2b63302299898daad807abaad54d162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Morch=C3=B3n=20Poveda?= Date: Fri, 20 Mar 2015 13:19:28 +0100 Subject: [PATCH] Knockout 3.3 - Components Added $component and $componentTemplateNodes binding context properties (see http://knockoutjs.com/documentation/binding-context.html). Added ComponentInfo.templateNodes. --- knockout/knockout.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/knockout/knockout.d.ts b/knockout/knockout.d.ts index db8ab16aba..eaae8bee1d 100644 --- a/knockout/knockout.d.ts +++ b/knockout/knockout.d.ts @@ -121,6 +121,8 @@ interface KnockoutBindingContext { $rawData: any | KnockoutObservable; $index?: KnockoutObservable; $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; -} \ No newline at end of file +}