How to use ImmutableJS Map with TypeScript
问题 I have a tree structure that looks something like this: interface TreeData { id : number; text : string; children : TreeData[]; } I want to wrap this up into an Immutable Map but since I'm using TypeScript, I would like some type safety around using get and set. I found 2 articles online for suggestions on how one might be able to do this, see: https://github.com/facebook/immutable-js/issues/683 https://blog.mayflower.de/6630-typescript-redux-immutablejs.html However my problem is that my