mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
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.
This commit is contained in:
16
winjs/winjs.d.ts
vendored
16
winjs/winjs.d.ts
vendored
@@ -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<any>;
|
||||
public renderItem(item: any, recycled?: HTMLElement);
|
||||
}
|
||||
|
||||
}
|
||||
module Namespace {
|
||||
var define: any;
|
||||
|
||||
Reference in New Issue
Block a user