Relative Content

Tag Archive for angulartypescriptinterface

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.