From b9513348459a01d88099b2cdec3cd044d498ef27 Mon Sep 17 00:00:00 2001 From: "Roy.Liu" Date: Wed, 23 Dec 2020 16:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/base/foundation/message.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 typescript/base/foundation/message.ts diff --git a/typescript/base/foundation/message.ts b/typescript/base/foundation/message.ts new file mode 100644 index 000000000..40aae2129 --- /dev/null +++ b/typescript/base/foundation/message.ts @@ -0,0 +1,6 @@ +export type _msg = { + alert: (title: string, message?: string, callback?: (result?: boolean)=>void) => void + confirm: (title: string, message?: string, callback?: (result: boolean)=>void) => void + prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, min_width?: number) => void + toast: (message: string, options?: object, context?: HTMLElement ) => void +} \ No newline at end of file