Changed QueryCollection to be an interface instead of class so that it can extend Array interface. In WinJS implementaion, QueryCollection extends Array and all Array members should be available on QueryCollection.

This commit is contained in:
Anand Prakash 2014-04-27 17:33:12 -07:00
parent 1d55f70e34
commit 5051de332f

8
winjs/winjs.d.ts vendored
View File

@ -76,17 +76,17 @@ declare module WinJS.Application {
/**
* The local storage of the application.
**/
var local: IOHelper;
var local: IOHelper;
/**
* The roaming storage of the application.
**/
var roaming: IOHelper;
var roaming: IOHelper;
/**
* The temp storage of the application.
**/
var temp: IOHelper;
var temp: IOHelper;
/**
* An object used for storing app information that can be used to restore the app's state after it has been suspended and then resumed. Data that can usefully be contained in this object includes the current navigation page or any information the user has added to the input controls on the page. You should not add information about customization (for example colors) or user-defined lists of content.
@ -7904,7 +7904,7 @@ declare module WinJS.Utilities {
/**
* Represents the result of a query selector, and provides various operations that perform actions over the elements of the collection.
**/
class QueryCollection<T> {
interface QueryCollection<T> extends Array<T> {
//#region Constructors
/**