Creating An Object Array Typescript Compiler