I've got a class that inherits from Array:
class List<T> extends Array<T> {
constructor(items: T[]) {
super(items); // error here...
}
}
Argument of type 'T[]' is not assignable to parameter of type 'T'.
Assuming this is because Array's constructor takes (...items: T[])
So, how do I pass a standard array to something that takes a spread operator?