♻️ (notification)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user