Skip to content

Commit

Permalink
fix(RouterStore): Allow strict mode with router reducer (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandangel authored and brandonroberts committed Mar 13, 2018
1 parent 839b42a commit f17a032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/router-store/src/router_store_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export type RouterReducerState<T = RouterStateSnapshot> = {
};

export function routerReducer<T = RouterStateSnapshot>(
state: RouterReducerState<T>,
state: RouterReducerState<T> | undefined,
action: RouterAction<any, T>
): RouterReducerState<T> {
switch (action.type) {
Expand All @@ -108,7 +108,7 @@ export function routerReducer<T = RouterStateSnapshot>(
navigationId: action.payload.event.id,
};
default:
return state;
return state as RouterReducerState<T>;
}
}

Expand Down

0 comments on commit f17a032

Please sign in to comment.