Create a new object from type parameter in generic class Create a new object from type parameter in generic class typescript typescript