diff --git a/web/src/compose_fade.ts b/web/src/compose_fade.ts index d0d999b3ef..6d96a6775f 100644 --- a/web/src/compose_fade.ts +++ b/web/src/compose_fade.ts @@ -14,7 +14,7 @@ import type {AllVisibilityPolicies} from "./user_topics"; import * as util from "./util"; // TODO/TypeScript: Move this to message_list_view.js when it's migrated to TypeScript. -type MessageContainer = { +export type MessageContainer = { background_color: string; date_divider_html?: string; edited_alongside_sender: boolean; diff --git a/web/src/message_lists.ts b/web/src/message_lists.ts index 45d8651cf5..5f78bde17d 100644 --- a/web/src/message_lists.ts +++ b/web/src/message_lists.ts @@ -1,19 +1,12 @@ import $ from "jquery"; +import type {MessageContainer} from "./compose_fade"; import * as inbox_util from "./inbox_util"; import type {MessageListData} from "./message_list_data"; import * as message_list_data_cache from "./message_list_data_cache"; import type {Message} from "./message_store"; import * as ui_util from "./ui_util"; -// TODO(typescript): Move this to message_list_view when it's -// converted to TypeScript. -export type MessageContainer = { - msg: Message; - is_hidden: boolean; - url: string; -}; - // TODO(typescript): Move this to message_list_view when it's // converted to typescript. type MessageListView = {