I am creating an Application using react-redux. In that i am using typescript and immutable.js. When i use immutable methods like updateIn(), for a typed object, it is throwing error.
Following is the code which i tried:
interface aType{
id: number
}
function randFun(a:aType){
a = a.updateIn([....]); //It is throwing error in this line of code.
}
randFun({id:2});
Property 'updateIn' doesn't exist in on type {...}
How can i get rid of this error???