I have a predefined interface:
export declare interface Type<T> extends Function {
new (...args: any[]): T;
}
I would like to have a class attribute that constraint the generic type. Something like this:
public componentType: Type<any extends MyComponentType>;
Is it possible ? Because I did not find the solution on Typescript doc and I can't find a syntax that is working.
Thanks.
public componentType: Type<MyComponentType>?