Skip to content

Commit

Permalink
refactor(reducers/index.js): import 'Actions' from store's types
Browse files Browse the repository at this point in the history
use 'Actions' for combineReducers's second generic parameter
  • Loading branch information
aneurysmjs committed May 24, 2019
1 parent 8cc6587 commit 2f334ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/store/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// @flow strict
/**
* @module reducers
*/

import { combineReducers } from 'redux';

import type { Actions } from '@/store/types/Actions';

import products from './products';

export default combineReducers({
export default combineReducers<{}, Actions>({
products
});

0 comments on commit 2f334ec

Please sign in to comment.