From dcf29078f44be51e4ca53cd2155f6edfc1c02f2c Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 30 Aug 2021 14:32:56 -0700 Subject: [PATCH] ConversationView: Improve types --- .eslintrc.js | 1 + background.html | 30 - package.json | 5 +- stylesheets/_conversation.scss | 10 - test/index.html | 43 - ts/components/CompositionArea.tsx | 20 +- .../conversation/MessageDetail.stories.tsx | 3 - ts/components/conversation/MessageDetail.tsx | 49 +- ts/groups/joinViaLink.ts | 4 +- ts/model-types.d.ts | 14 +- ts/models/conversations.ts | 41 +- ts/sql/Server.ts | 4 + ts/state/smart/CompositionArea.tsx | 10 +- ts/state/smart/MessageDetail.tsx | 52 +- ts/types/Attachment.ts | 51 +- ts/types/LinkPreview.ts | 8 +- ts/util/handleImageAttachment.ts | 6 +- ts/util/longRunningTaskWrapper.ts | 8 +- ts/views/conversation_view.ts | 1510 ++++++++++------- ts/window.d.ts | 151 +- yarn.lock | 22 +- 21 files changed, 1101 insertions(+), 941 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 0acac950b2ce..7b746c6ff5f4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -44,6 +44,7 @@ const rules = { ], 'no-continue': 'off', + 'lines-between-class-members': 'off', // Prettier overrides: 'arrow-parens': 'off', diff --git a/background.html b/background.html index 51a7ab2bf2af..cab672b47986 100644 --- a/background.html +++ b/background.html @@ -57,19 +57,6 @@ - - - - @@ -121,11 +100,6 @@ - - - - - - - - - - - - @@ -103,11 +69,6 @@ - - - -