Creating Objects In Typescript Compiler Vs Code