Typescript Turn Type Into Array Initialization Cpp Compiler