I define a data interface in the view in the project using the following syntax:
interface IUserInfo extends Immutable.Map<string, any> {
}
but the error: Cannot find namespace "Immutable"
, I have downloaded @ types/redux-immutable
.
I already know that there is a way to define this type in the xxx.d.ts
file, and then configure typeRoot
in tsconfig.json
. Is there any other way to make the Immutable type globally available?