Added constructor support for QueryCollection<T> interface

This commit is contained in:
Anand Prakash
2014-04-27 18:38:43 -07:00
parent bfe38c6de7
commit 63ae54c867

19
winjs/winjs.d.ts vendored
View File

@@ -7905,17 +7905,6 @@ declare module WinJS.Utilities {
* Represents the result of a query selector, and provides various operations that perform actions over the elements of the collection.
**/
interface QueryCollection<T> extends Array<T> {
//#region Constructors
/**
* Initializes a new instance of a QueryCollection.
* @constructor
* @param items The items resulting from the query.
**/
constructor(items: T[]);
//#endregion Constructors
//#region Methods
/**
@@ -8062,6 +8051,14 @@ declare module WinJS.Utilities {
}
/**
* Constructor support for QueryCollection interface
**/
export var QueryCollection: {
new <T>(items: T[]): QueryCollection<T>;
prototype: QueryCollection<any>;
}
//#endregion Objects
//#region Functions