infinitered / reactotron-redux

The redux plugin for reactotron that allows tracking redux actions and state
MIT License
10 stars 3 forks source link

Issue with new redux types #14

Open peterjuras opened 5 years ago

peterjuras commented 5 years ago

The redux types require a type argument for the StoreEnhancer type. Therefore the following line of index.d.ts throws an error:

createEnhancer?: () => StoreEnhancer;
node_modules/reactotron-redux/dist/types/index.d.ts:23:32 - error TS2314: Generic type 'StoreEnhancer' requires 1 type argument(s).

23         createEnhancer?: () => StoreEnhancer;
                                  ~~~~~~~~~~~~~

Found 1 error.

Using StoreEnhancer<any> solves the issue.