Create notification helper methods bound to an application context type.
Call it once in lib/notifications.ts:
lib/notifications.ts
export const { defineNotification } = createNotifications<AppContext>(); Copy
export const { defineNotification } = createNotifications<AppContext>();
Notifications represent user-facing communication intent. Channel handlers decide how that intent becomes mail, SMS, push, in-app delivery, or another app-owned channel.
Create notification helper methods bound to an application context type.
Call it once in
lib/notifications.ts:Notifications represent user-facing communication intent. Channel handlers decide how that intent becomes mail, SMS, push, in-app delivery, or another app-owned channel.