Enable tsconfig noUncheckedIndexedAccess

This commit is contained in:
Jamie
2026-03-12 16:24:01 -07:00
committed by GitHub
parent 34b0f9cd50
commit 1d45a52da7
311 changed files with 2146 additions and 1589 deletions

View File

@@ -119,7 +119,7 @@ describe('LeftPaneChooseGroupMembersHelper', () => {
const candidateContacts = [
getDefaultConversation(),
getDefaultConversation(),
];
] as const;
const helper = new LeftPaneChooseGroupMembersHelper({
...defaults,
candidateContacts,
@@ -145,7 +145,11 @@ describe('LeftPaneChooseGroupMembersHelper', () => {
});
it("disables non-selected contact checkboxes if you've selected the maximum number of contacts", () => {
const candidateContacts = times(50, () => getDefaultConversation());
const candidateContacts = [
getDefaultConversation(),
getDefaultConversation(),
...times(48, () => getDefaultConversation()),
] as const;
const helper = new LeftPaneChooseGroupMembersHelper({
...defaults,
candidateContacts,