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

@@ -105,7 +105,8 @@ const processReceiptBatcher = createWaitBatcher({
continue;
}
// All receipts have the same sentAt, so we can grab it from the first
const sentAt = receiptsForMessageSentAt[0].receiptSync.messageSentAt;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const sentAt = receiptsForMessageSentAt[0]!.receiptSync.messageSentAt;
const messagesMatchingTimestamp =
// eslint-disable-next-line no-await-in-loop
@@ -374,7 +375,8 @@ function getTargetMessage({
`);
}
const message = matchingMessages[0];
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const message = matchingMessages[0]!;
return window.MessageCache.register(new MessageModel(message));
}
const wasDeliveredWithSealedSender = (

View File

@@ -436,7 +436,8 @@ export async function handlePollVote(
);
if (existingVoteIndex !== -1) {
const existingVote = currentVotes[existingVoteIndex];
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const existingVote = currentVotes[existingVoteIndex]!;
if (newVote.voteCount > existingVote.voteCount) {
updatedVotes = [...currentVotes];