Answer the question
In order to leave comments, you need to log in
How to declare a type by specifying a generic class and use it with new?
Suppose we have an Observable class that is generic, and I create instances through: new Observable<number>();
And I want it like this:
type NumberStream = Observable<number>;
new NumberStream();
class NumberStream extends Observable<number> {}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question