Minor: mark reducer arguments as Readonly
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user