Add type-alias-readonlydeep rule and make ducks mostly immutable
This commit is contained in:
parent
11ce3c3d59
commit
c58a723f45
47 changed files with 1164 additions and 871 deletions
|
@ -6,6 +6,7 @@ import type { RefObject } from 'react';
|
|||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import type { ReadonlyDeep } from 'type-fest';
|
||||
import { mapDispatchToProps } from '../actions';
|
||||
import type {
|
||||
ContactSpoofingReviewPropType,
|
||||
|
@ -103,7 +104,7 @@ function renderTypingBubble(id: string): JSX.Element {
|
|||
}
|
||||
|
||||
const getWarning = (
|
||||
conversation: Readonly<ConversationType>,
|
||||
conversation: ReadonlyDeep<ConversationType>,
|
||||
state: Readonly<StateType>
|
||||
): undefined | TimelineWarningType => {
|
||||
switch (conversation.type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue