Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-zaets committed Sep 24, 2016
1 parent e2dc719 commit aa5227e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ it('should execute promise', () => {
## API

```
- configureStore(middlewares?: Array) => mockStore: function
- configureStore(middlewares?: Array) => mockStore: Function
- mockStore(getState?: Object,Function) => store: Function
- store.dispatch(action) => action
- store.getState() => state: Object
- store.getActions() => actions: Array
- store.clearActions()
- store.subscribe()
- store.replaceReducer()
- store.subscribe(callback: Function) => unsubscribe: Function
- store.replaceReducer(nextReducer: Function)
```

## License
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default function configureStore (middlewares = []) {
listeners.splice(index, 1)
}
},

replaceReducer (nextReducer) {
if (!isFunction(nextReducer)) {
throw new Error('Expected the nextReducer to be a function.')
Expand Down

0 comments on commit aa5227e

Please sign in to comment.