Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Export the type for the combineReducers export
  • Loading branch information
adamziel committed Aug 23, 2022
commit a501827ed38c2699a6241cd2f05f5c7304e56784
4 changes: 4 additions & 0 deletions packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ const store = createReduxStore( 'my-shop', {
register( store );
```

_Type_

- `Function`

_Parameters_

- _reducers_ `Object`: An object whose values correspond to different reducing functions that need to be combined into one.
Expand Down
4 changes: 3 additions & 1 deletion packages/data/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import combineReducers from 'turbo-combine-reducers';
import turboCombineReducers from 'turbo-combine-reducers';

/**
* Internal dependencies
Expand Down Expand Up @@ -43,6 +43,7 @@ export { plugins };
* The combineReducers helper function turns an object whose values are different
* reducing functions into a single reducing function you can pass to registerReducer.
*
* @type {Function}
* @param {Object} reducers An object whose values correspond to different reducing
* functions that need to be combined into one.
*
Expand Down Expand Up @@ -77,6 +78,7 @@ export { plugins };
* @return {Function} A reducer that invokes every reducer inside the reducers
* object, and constructs a state object with the same shape.
*/
const combineReducers = turboCombineReducers;
export { combineReducers };

/**
Expand Down