Obtaining the return type of a function Obtaining the return type of a function typescript typescript