♻️ (notification)

This commit is contained in:
2020-07-04 10:52:24 +02:00
parent fe674c73df
commit 4aeebe5ad4

View File

@@ -1,12 +1,13 @@
declare const Notification: any declare const Notification: any
let showNotification: type ShowNotification = (
| ((title: string, options?: NotificationOptions) => Promise<void>) title: string,
| null = null options?: NotificationOptions
) => Promise<void>
export const setNotificationInstance = ( let showNotification: ShowNotification | null = null
sn: (title: string, options?: NotificationOptions) => Promise<void>
) => { export const setNotificationInstance = (sn: ShowNotification) => {
showNotification = sn showNotification = sn
} }