mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 09:55:50 +08:00
Added constructor support for QueryCollection<T> interface
This commit is contained in:
19
winjs/winjs.d.ts
vendored
19
winjs/winjs.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user