From 856043d464226e9dfbcad976bd49eb39d64fed67 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 2 Oct 2013 08:41:56 -0500 Subject: [PATCH] Added WinJS.Binding.Template class I did not add the unusual function `render.value(...)` as I didn't know how to represent that cleanly in TypeScript. --- winjs/winjs.d.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index fdd39b9d28..c7ae374082 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -18,7 +18,7 @@ declare module WinJS { module Binding { function as(data: any): any; class List { - constructor(data: any[]); + constructor(data?: any[]); public push(item: any): any; public indexOf(item: any): number; public splice(start: number, howMany?: number, item?: any[]): any[]; @@ -47,6 +47,20 @@ declare module WinJS { public notifyMutated(index: number); } + class Template { + public element: HTMLElement; + public extractChild: boolean; + public processTimeout: number; + public debugBreakOnRender: boolean; + public disableOptimizedProcessing: boolean; + public isDeclarativeControlContainer: boolean; + public bindingInitializer: any; + + constructor(element: HTMLElement, options?: any); + public render(dataContext: any, container?: HTMLElement): WinJS.Promise; + public renderItem(item: any, recycled?: HTMLElement); + } + } module Namespace { var define: any;