Minor: mark reducer arguments as Readonly
This commit is contained in:
parent
0c99604585
commit
eff2318157
11 changed files with 23 additions and 23 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue