[typescript] how to make a type globally available

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?

Mar.23,2021

Immutable belongs to the immutable package, which has nothing to do with redux-immutable. Redux-immutable simply bridges redux and immutable. Do you install immutable ? immutable has a

Previous: About the map of Mini Program

Next: How layui's Calendar puts Monday in the first place

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38629-2c114.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38629-2c114.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?