错误提示: Property '__REDUX_DEVTOOLS_EXTENSION__' does not exist on type 'Window & typeof "globalThis'."
解决方法:在项目中创建一个global.d.ts的文件,加入以下代码
export {}; declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION__: Function; } }
错误提示: Property '__REDUX_DEVTOOLS_EXTENSION__' does not exist on type 'Window & typeof "globalThis'."
export {}; declare global { interface Window { __REDUX_DEVTOOLS_EXTENSION__: Function; } }