Multiple Interface for the same object [Angulat TS]
I try to use a diferent type of declaration for my object “docs”, because i want to use the same Interface “ResponseInterface” for differents requests, one is for User[] and other is for Hospitals[] or whatever.
the thing is that i want to use the same declarations of baseResponseInterface in HospitalInterface & UserInterface sharing the “docs” for the different request or type of elements.
i haven’t achieved that.
Augmenting lib.dom.d.ts interface with interface declared in an imported @types package
I’m new to typescript and I’m trying to do some interface declaration merging. There is this interface from lib.dom.d.ts that is automatically imported, and there is the same interface in a @types package that I’m using in my project. I’m trying to merge them, but when I import the one from @types it is actually overwriting the other.