Generic types in typescript

Generic types in typescript