Inherit type of parameters from class We have a class with some users and we need to type it using interfaces.