From 90b7f1c1c770bd1a6e7e0498e45b5809defa2131 Mon Sep 17 00:00:00 2001 From: NCC1701M Date: Tue, 22 Mar 2016 13:55:45 +0100 Subject: [PATCH] Fix compile errors Change line 9779 from ```ts class QueryCollection implements Array { ``` to ```ts class QueryCollection extends Array { ``` ***Because I getting the error TS2420: Class 'QueryCollection' incorrectly implements interface 'T[]'.*** *** Property 'find' is missing in type 'QueryCollection'.*** After implementing find in .d.ts getting next error about method findIndex and so on. Simplest way to fix it, was let QueryCollection extends Array and not implement it. ***Typescript version*** 1.8.7 --- winjs/winjs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index 51b159951..0695a1fb3 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -9774,7 +9774,7 @@ declare namespace WinJS.Utilities { /** * Represents the result of a query selector, and provides various operations that perform actions over the elements of the collection. **/ - class QueryCollection implements Array { + class QueryCollection extends Array { //#region Methods /**