echo: Convert module to TypeScript.

This commit is contained in:
Varun Singh
2024-08-11 01:43:48 +05:30
committed by Tim Abbott
parent 3dd8a4c6d5
commit d8dd682944
4 changed files with 212 additions and 61 deletions

View File

@@ -64,6 +64,7 @@ export type RawMessage = {
} & (
| {
type: "private";
topic_links?: undefined;
}
| {
type: "stream";
@@ -115,7 +116,16 @@ export type Message = (
) & {
clean_reactions: Map<string, MessageCleanReaction>;
// Local echo state cluster of fields.
locally_echoed?: boolean;
failed_request?: boolean;
show_slow_send_spinner?: boolean;
resend?: boolean;
local_id?: string;
// The original markup for the message, which we'll have if we
// sent it or if we fetched it (usually, because the current user
// tried to edit the message).
raw_content?: string;
// Added in `message_helper.process_new_message`.