Type Array Object Typescript Compiler Npm