TypeScript | Immutable | proper way of extending Immutable.Map type
问题 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 they are used as a Map. I created an interface: export interface PaymentMethod extends Immutable.Map<string, string | NamedType<number>> { id: string; name: string; description: string; accountNr: string; paymentMethodType: NamedType<number>; } In general it works very good. Except tests, where I create data this way: const