mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
ts: Convert confirm_dialog module to TypeScript.
This commit is contained in:
@@ -43,7 +43,7 @@ import * as ui_report from "./ui_report";
|
||||
* to DOM, it can do so by passing a post_render hook.
|
||||
*/
|
||||
|
||||
type WidgetConfig = {
|
||||
export type DialogWidgetConfig = {
|
||||
html_heading: string;
|
||||
html_body: string;
|
||||
on_click: (e: unknown) => void;
|
||||
@@ -97,7 +97,7 @@ export function close_modal(on_hidden_callback?: () => void): void {
|
||||
overlays.close_modal("dialog_widget_modal", {on_hidden: on_hidden_callback});
|
||||
}
|
||||
|
||||
export function launch(conf: WidgetConfig): void {
|
||||
export function launch(conf: DialogWidgetConfig): void {
|
||||
// Mandatory fields:
|
||||
// * html_heading
|
||||
// * html_body
|
||||
|
||||
Reference in New Issue
Block a user