added typescript definition in the package.json