drafts_overlay_ui: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-27 22:33:49 -08:00
committed by Tim Abbott
parent 9c6d776a5c
commit fcba1f03c4
6 changed files with 44 additions and 38 deletions

View File

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