compose_reply: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-14 16:35:52 -07:00
committed by Tim Abbott
parent c8981be08f
commit b132fc50b3
4 changed files with 70 additions and 34 deletions

View File

@@ -230,7 +230,7 @@ export function insert_syntax_and_focus(
syntax: string,
$textarea = $<HTMLTextAreaElement>("textarea#compose-textarea"),
mode = "inline",
padding_newlines: number,
padding_newlines?: number,
): void {
// Generic helper for inserting syntax into the main compose box
// where the cursor was and focusing the area. Mostly a thin