Skip to content

Commit

Permalink
fix(Store): Remove parameter destructuring for strict mode (#33) (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinder authored and MikeRyanDev committed Jul 14, 2017
1 parent 48a2381 commit c9d6a45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/store/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export type StateActionPair<T, V extends Action = Action> = {
action?: V;
};
export function reduceState<T, V extends Action = Action>(
{ state }: StateActionPair<T, V> = { state: undefined },
stateActionPair: StateActionPair<T, V> = { state: undefined },
[action, reducer]: [V, ActionReducer<T, V>]
): StateActionPair<T, V> {
const { state } = stateActionPair;
return { state: reducer(state, action), action };
}

Expand Down

0 comments on commit c9d6a45

Please sign in to comment.