Update Backbone types: attributes is T - and fix failing type checks

This commit is contained in:
Scott Nonnenberg 2023-01-05 13:58:13 -08:00 committed by GitHub
parent c65a7d0a14
commit b8234765bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 57 additions and 24 deletions

4
ts/model-types.d.ts vendored
View file

@ -290,7 +290,7 @@ export type ConversationAttributesType = {
discoveredUnregisteredAt?: number;
firstUnregisteredAt?: number;
draftChanged?: boolean;
draftAttachments?: Array<AttachmentDraftType>;
draftAttachments?: ReadonlyArray<AttachmentDraftType>;
draftBodyRanges?: DraftBodyRangesType;
draftTimestamp?: number | null;
hideStory?: boolean;
@ -315,7 +315,7 @@ export type ConversationAttributesType = {
quotedMessageId?: string | null;
sealedSender?: unknown;
sentMessageCount?: number;
sharedGroupNames?: Array<string>;
sharedGroupNames?: ReadonlyArray<string>;
voiceNotePlaybackRate?: number;
id: string;