Currently, Yallist.toArray() returns a type of Array<any>. However, since Yallist<T> is initialized with a specific type T, could we instead return Array<T> from Yallist.toArray()?
Perhaps
could be updated to something like:
toArray(): Array<T> {
// ...
}
Currently,
Yallist.toArray()returns a type ofArray<any>. However, sinceYallist<T>is initialized with a specific typeT, could we instead returnArray<T>fromYallist.toArray()?Perhaps
could be updated to something like: