How can we indicate the TypeScript equivalent of Java's ? extends MyClass
?
One possible way to achieve this is:
function myFunc <TComponent extends MyBaseClass>(param: ComponentFixture<TComponent>) {}
Is there a more concise alternative such as:
function myFunc(param: ComponentFixture<? extends MyBaseClass>) {} // This results in error TS1138: Parameter declaration expected
Any suggestions or insights on how to approach this issue?
Could it be that this feature has not been implemented yet?
Alternatively, is there a different syntax for achieving the same functionality?
What might be the reasoning behind the lack of support for this feature?