Typescript Create Object Of Generic Type