Creating Objects In Typescript Compiler