mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
drafts_overlay_ui: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9c6d776a5c
commit
fcba1f03c4
@@ -61,7 +61,7 @@ const draft_schema = z.intersection(
|
||||
]),
|
||||
);
|
||||
|
||||
type LocalStorageDraft = z.infer<typeof draft_schema>;
|
||||
export type LocalStorageDraft = z.infer<typeof draft_schema>;
|
||||
|
||||
// The id is added to the draft in format_drafts in drafts_overlay_ui.
|
||||
// We should probably just include it in the draft object itself always?
|
||||
@@ -568,7 +568,7 @@ export function remove_old_drafts(): void {
|
||||
}
|
||||
}
|
||||
|
||||
type FormattedDraft =
|
||||
export type FormattedDraft =
|
||||
| {
|
||||
is_stream: true;
|
||||
draft_id: string;
|
||||
|
||||
Reference in New Issue
Block a user