Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
julesterrien committed May 5, 2017
1 parent 06271eb commit 670c723
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion index.js

This file was deleted.

6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const RESET = 'RESET';
* @param {Ojbect} state the keys to update
* @return {Object} an action creator object
*/
const update = (reducer, tag, state) => ({
export const update = (reducer, tag, state) => ({
type: UPDATE,
reducer,
tag,
Expand All @@ -25,7 +25,7 @@ const update = (reducer, tag, state) => ({
* @param {Ojbect} state the keys to reset
* @return {Object} an action creator object
*/
const reset = (reducer, tag, state) => ({
export const reset = (reducer, tag, state) => ({
type: RESET,
reducer,
tag,
Expand All @@ -38,7 +38,7 @@ const reset = (reducer, tag, state) => ({
* @param {Object} initialState the reducer's initial state
* @return {Function} a createReducer function which handles update & reset actions
*/
const createReducer = (name, initialState) => (state = initialState, action) => {
export const createReducer = (name, initialState) => (state = initialState, action) => {
if (typeof name !== 'string') {
return new Error('Expected reducer name to be a string');
}
Expand Down

0 comments on commit 670c723

Please sign in to comment.