diff --git a/src/lib/helpers/notifications.ts b/src/lib/helpers/notifications.ts index f54073fe7..a13d3a95d 100644 --- a/src/lib/helpers/notifications.ts +++ b/src/lib/helpers/notifications.ts @@ -8,6 +8,12 @@ type NotificationPrefItem = { state: 'hidden' | 'shown' | undefined; }; +export type NotificationCoolOffOptions = { + coolOffPeriod?: number; + exponentialBackoff?: boolean; + exponentialBackoffFactor?: number; +}; + const userPreferences = () => get(user).prefs; const notificationPrefs = (): Record => { @@ -31,14 +37,18 @@ function updateNotificationPrefs(parsedPrefs: Record