mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fix compile errors
Change line 9779 from
```ts
class QueryCollection<T> implements Array<T> {
```
to
```ts
class QueryCollection<T> extends Array<T> {
```
***Because I getting the error TS2420: Class 'QueryCollection<T>' incorrectly implements interface 'T[]'.***
*** Property 'find' is missing in type 'QueryCollection<T>'.***
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
This commit is contained in:
Vendored
+1
-1
@@ -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<T> implements Array<T> {
|
||||
class QueryCollection<T> extends Array<T> {
|
||||
//#region Methods
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user