♻️ (notification)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
declare const Notification: any
|
||||
|
||||
let showNotification:
|
||||
| ((title: string, options?: NotificationOptions) => Promise<void>)
|
||||
| null = null
|
||||
type ShowNotification = (
|
||||
title: string,
|
||||
options?: NotificationOptions
|
||||
) => Promise<void>
|
||||
|
||||
export const setNotificationInstance = (
|
||||
sn: (title: string, options?: NotificationOptions) => Promise<void>
|
||||
) => {
|
||||
let showNotification: ShowNotification | null = null
|
||||
|
||||
export const setNotificationInstance = (sn: ShowNotification) => {
|
||||
showNotification = sn
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user