Minor: mark reducer arguments as Readonly

This commit is contained in:
Evan Hahn
2020-12-14 13:47:21 -06:00
committed by Josh Perez
parent 0c99604585
commit eff2318157
11 changed files with 23 additions and 23 deletions

View File

@@ -83,8 +83,8 @@ function getEmptyState(): UserStateType {
}
export function reducer(
state: UserStateType = getEmptyState(),
action: UserActionType
state: Readonly<UserStateType> = getEmptyState(),
action: Readonly<UserActionType>
): UserStateType {
if (!state) {
return getEmptyState();