How To Use Generics In Typescript Digitalocean