diff --git a/src/public/app/services/toast.js b/src/public/app/services/toast.ts similarity index 78% rename from src/public/app/services/toast.js rename to src/public/app/services/toast.ts index 09c17ce7f..13deb3bfc 100644 --- a/src/public/app/services/toast.js +++ b/src/public/app/services/toast.ts @@ -1,7 +1,17 @@ import ws from "./ws.js"; import utils from "./utils.js"; -function toast(options) { +interface ToastOptions { + id?: string; + icon: string; + title: string; + message: string; + delay?: number; + autohide?: boolean; + closeAfter?: number; +} + +function toast(options: ToastOptions) { const $toast = $(`