Beignet API reference
    Preparing search index...

    Function createNotifications

    • Create notification helper methods bound to an application context type.

      Call it once in lib/notifications.ts:

      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.

      Type Parameters

      • Ctx

      Returns Notifications<Ctx>