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

@ -914,7 +914,7 @@ function getExistingPeekInfo(
}
function removeConversationFromState(
state: CallingStateType,
state: Readonly<CallingStateType>,
conversationId: string
): CallingStateType {
return {
@ -926,8 +926,8 @@ function removeConversationFromState(
}
export function reducer(
state: CallingStateType = getEmptyState(),
action: CallingActionType
state: Readonly<CallingStateType> = getEmptyState(),
action: Readonly<CallingActionType>
): CallingStateType {
const { callsByConversation } = state;