I have a react-redux application written in typescript with immutable package. There I have a data, which comes from api and in store I pack it to Map. In all application th
Leaving that here in case it helps someone:
import { Map } from 'immutable';
export interface ImmutableMap extends Omit
It's really working great for us!
We use it like so: const aMap: ImmutableMap
Example Usage:
type BarType = { bar: string };
const foo: BarType = {
bar: 'abc';
};
const immutableBar: Immutable = Map(foo);
// immutableBar.get suggests bar as the key, and knows that the result is a string.