How to define the data type of value in the nodejs function written in typescript, so that error of Object is of type unknow can be solved ?