Typescript Object Type In Function Int