We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 381fa1a commit e2d846dCopy full SHA for e2d846d
src/utils/redux.js
@@ -2,7 +2,7 @@
2
import config from '../config';
3
import timing from './timing';
4
5
-export const logSlowReducers = (reducers: Object): Object => {
+export function logSlowReducers<O: Object>(reducers: O): O {
6
Object.keys(reducers).forEach((name: string) => {
7
const originalReducer = reducers[name];
8
reducers[name] = (state, action) => {
@@ -20,4 +20,4 @@ export const logSlowReducers = (reducers: Object): Object => {
20
};
21
});
22
return reducers;
23
-};
+}
0 commit comments