mirror of https://github.com/zulip/zulip.git
types: Move Submessage to submessage.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
48fc0bc750
commit
ec199082fd
|
@ -2,7 +2,8 @@ import _ from "lodash";
|
|||
|
||||
import * as blueslip from "./blueslip";
|
||||
import * as people from "./people";
|
||||
import type {Submessage, TopicLink} from "./types";
|
||||
import type {Submessage} from "./submessage";
|
||||
import type {TopicLink} from "./types";
|
||||
import type {UserStatusEmojiInfo} from "./user_status";
|
||||
|
||||
const stored_messages = new Map<number, Message>();
|
||||
|
|
|
@ -5,9 +5,16 @@ import * as channel from "./channel";
|
|||
import type {MessageList} from "./message_lists";
|
||||
import * as message_store from "./message_store";
|
||||
import type {Message} from "./message_store";
|
||||
import type {Submessage} from "./types";
|
||||
import * as widgetize from "./widgetize";
|
||||
|
||||
export type Submessage = {
|
||||
id: number;
|
||||
sender_id: number;
|
||||
message_id: number;
|
||||
content: string;
|
||||
msg_type: string;
|
||||
};
|
||||
|
||||
export const zform_widget_extra_data_schema = z
|
||||
.object({
|
||||
choices: z.array(
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
import type {ExternalAccountFieldData} from "./settings_components";
|
||||
|
||||
// TODO/typescript: Move this to submessage.js
|
||||
export type Submessage = {
|
||||
id: number;
|
||||
sender_id: number;
|
||||
message_id: number;
|
||||
content: string;
|
||||
msg_type: string;
|
||||
};
|
||||
|
||||
// TODO/typescript: Move this to server_events
|
||||
export type TopicLink = {
|
||||
text: string;
|
||||
|
|
Loading…
Reference in New Issue