Typescript Turn Type Into Array Initialization In Java