Having a quick question here! How can I create two classes with generic type arguments in typescript?
export class ServiceResponse { }
export class ServiceResponse<T> extends ServiceResponse {}
I encountered an issue where TypeScript flagged these as duplicate identifiers. Can you declare the same name with a generic type argument in TypeScript? Has anyone dealt with this challenge before? In C#
, this scenario is frequently seen.
Appreciate your help!