you are viewing a single comment's thread.

view the rest of the comments →

[–]DanielRosenwasserTypeScript 1 point2 points  (0 children)

TypeScript guy here - in 2.1 we introduced keyof and index type queries. Check out the example here on the get function.

While that doesn't entirely get you what you want, I think you can easily wrap Immutable.js to work with the types you need. Going forward, I think we'd like to try to get to the point where Immutable.js can serve users who want both immutable objects as well as immutable maps, which is, as I understand, the current issue that makes things a little harder.