diff --git a/src/utils/notification.ts b/src/utils/notification.ts index c8b316d..c85437b 100644 --- a/src/utils/notification.ts +++ b/src/utils/notification.ts @@ -1,28 +1,19 @@ declare const Notification: any let showNotification: - | (( - title: string, - options?: NotificationOptions | undefined - ) => Promise) + | ((title: string, options?: NotificationOptions) => Promise) | null = null export const setNotificationInstance = ( - sn: ( - title: string, - options?: NotificationOptions | undefined - ) => Promise + sn: (title: string, options?: NotificationOptions) => Promise ) => { showNotification = sn } -export const notify = ( - title: string, - options?: NotificationOptions | undefined -) => { +export const notify = (title: string, options?: NotificationOptions) => { const showCustomNotification = ( title: string, - options?: NotificationOptions | undefined + options?: NotificationOptions ) => { if (!showNotification) { return