Devtools seem to be broken after updating Redux to v4. I am now getting the following error:
/path/to/project/node_modules/redux-devtools-extension/index.d.ts
(1,32): Module '"/path/to/project/node_modules/redux/index"' has no exported member 'GenericStoreEnhancer'.
So far I haven't found a way to fix it so ended up uninstalling redux-devtools-extension to be able to use the latest version of Redux but, obviously, it would be nice to have the tools working again!
I believe the answer is in this issue https://github.com/reactjs/redux/issues/2740. In the meantime you can "patch" the type declarations by adding your own redux.d.ts:
import * as redux from 'redux';
declare module 'redux' {
export type GenericStoreEnhancer = any;
}
It looks like GenericStoreEnhancer was removed and reverted to be StoreEnhancer<N>.
Sounds to me like this library does need to be updated after all as I don't think they'll bring the deleted type back.
Pushed a pull request #493 to get this sorted quicker.
Most helpful comment
I believe the answer is in this issue https://github.com/reactjs/redux/issues/2740. In the meantime you can "patch" the type declarations by adding your own
redux.d.ts: