Typescript Create Object Dynamically Typed