Is it possible to expose the type provided like for instance
Container.bind(PersonDAO).to(ManagerDAO);
having a
Container.getType(PersonDAO) would return the ManagerDAO type.
The use case is for instance, i am using class-transformer which requires the type needed when you want to create a object from plain json.
Is it possible to expose the type provided like for instance
Container.bind(PersonDAO).to(ManagerDAO);
having aContainer.getType(PersonDAO)
would return the ManagerDAO type.The use case is for instance, i am using class-transformer which requires the type needed when you want to create a object from plain json.