types: Move Submessage to submessage.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-29 17:02:16 -07:00
committed by Anders Kaseorg
parent 48fc0bc750
commit ec199082fd
3 changed files with 10 additions and 11 deletions

View File

@@ -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(