Typescript Turn Type Into Array Initialization In Cpp