Enable tsconfig noUncheckedIndexedAccess

Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-03-16 12:20:58 -05:00
committed by GitHub
parent 279a69f3b3
commit 5684e0d0aa
311 changed files with 2146 additions and 1589 deletions

View File

@@ -125,7 +125,7 @@ describe('LeftPaneInboxHelper', () => {
});
it('returns undefined if the selected conversation is not pinned or non-pinned', () => {
const archivedConversations = [getDefaultConversation()];
const archivedConversations = [getDefaultConversation()] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
conversations: [getDefaultConversation(), getDefaultConversation()],
@@ -142,7 +142,7 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
pinnedConversations,
@@ -162,7 +162,7 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
conversations,
@@ -176,7 +176,7 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
conversations: [getDefaultConversation()],
@@ -197,7 +197,7 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
conversations,
@@ -234,7 +234,7 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -260,7 +260,7 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -291,7 +291,7 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -313,7 +313,7 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -341,11 +341,11 @@ describe('LeftPaneInboxHelper', () => {
getDefaultConversation(),
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -389,11 +389,11 @@ describe('LeftPaneInboxHelper', () => {
getDefaultConversation(),
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -444,11 +444,11 @@ describe('LeftPaneInboxHelper', () => {
getDefaultConversation(),
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -482,7 +482,7 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -509,7 +509,7 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -536,11 +536,11 @@ describe('LeftPaneInboxHelper', () => {
const conversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
@@ -581,8 +581,8 @@ describe('LeftPaneInboxHelper', () => {
const pinnedConversations = [
getDefaultConversation(),
getDefaultConversation(),
];
const conversations = [getDefaultConversation()];
] as const;
const conversations = [getDefaultConversation()] as const;
const helper = new LeftPaneInboxHelper({
...defaultProps,
conversations,