redux-devtools-extension

Has anyone came across this error in TS with redux dev tools? “Property '__REDUX_DEVTOOLS_EXTENSION_COMPOSE__' does not exist on type 'Window'.”?

随声附和 提交于 2019-12-03 23:54:18
I'm getting this error on my index.tsx. Property ' REDUX_DEVTOOLS_EXTENSION_COMPOSE ' does not exist on type 'Window'. Here is my index.tsx code: import * as React from 'react'; import * as ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux'; import { createStore, compose, applyMiddleware } from 'redux'; import rootReducer from './store/reducers'; import thunk from 'redux-thunk'; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const store =