I am trying to work with a basic generic class:
export class MyType<T>{}
In the directive class, I want to create an @Input field that should be of type MyType:
@Input field MyType<>;
However, my code editor is showing an error that MyType<> is not the correct type. One solution could be to extend an abstract class like this:
export class AbstractType{}
export class MyType<T> extends Abstract{}
But then I lose all the generic functions. Do you have any suggestions on how to approach this correctly?