Hello,
I know this is not specific to angular, but as angular is one of the most active typescript users I was wondering if someone could help me on this one.
I want to create an interface that extends a generic. Something like this :
export interface A{
A: string;
}
export interface AB{
B: string;
}
export interface AC{
C: string;
}
export interface AX<T extends A> extends T{
X: string;
}
This way I could use AX in places where I need A and X.
I know this might sound a bit weird, but I really need this.
Thanks.
Best regards.