Minor: mark reducer arguments as Readonly
This commit is contained in:
parent
0c99604585
commit
eff2318157
11 changed files with 23 additions and 23 deletions
|
@ -83,8 +83,8 @@ function getEmptyState(): NetworkStateType {
|
|||
}
|
||||
|
||||
export function reducer(
|
||||
state: NetworkStateType = getEmptyState(),
|
||||
action: NetworkActionType
|
||||
state: Readonly<NetworkStateType> = getEmptyState(),
|
||||
action: Readonly<NetworkActionType>
|
||||
): NetworkStateType {
|
||||
if (action.type === CHECK_NETWORK_STATUS) {
|
||||
const { isOnline, socketStatus } = action.payload;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue