Currently, I am defining two types as shown below:
export type Component = AComponent| BComponent| CComponent;
export type ComponentType= typeof AComponent| typeof BComponent| typeof CComponent;
Is there a more efficient way to define these types without duplicating the code?
Appreciate any help or suggestions. Thank you.