From 98f1d936280737516d3da6770893b1aa9a28df0f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Aug 2021 13:16:23 +0900 Subject: [PATCH] refactor --- src/client/os.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/os.ts b/src/client/os.ts index 284f982f06..1e1d950a12 100644 --- a/src/client/os.ts +++ b/src/client/os.ts @@ -214,7 +214,11 @@ export function modalPageWindow(path: string) { }, {}, 'closed'); } -export function dialog(props: Record) { +export function dialog(props: { + type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'help'; + title?: string | null; + text?: string | null; +}) { return new Promise((resolve, reject) => { popup(import('@client/components/dialog.vue'), props, { done: result => {