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