Skip to content

Commit

Permalink
fix(store): make readonly usage consistent (#3050) (#3069)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterreisz authored Jul 12, 2021
1 parent fb7d69a commit a39b278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/store/src/reducer_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function on<State, Creators extends readonly ActionCreator[]>(
*/
export function createReducer<S, A extends Action = Action>(
initialState: S,
...ons: ReducerTypes<S, ActionCreator[]>[]
...ons: ReducerTypes<S, readonly ActionCreator[]>[]
): ActionReducer<S, A> {
const map = new Map<string, OnReducer<S, ActionCreator[]>>();
for (const on of ons) {
Expand Down

0 comments on commit a39b278

Please sign in to comment.