Skip to content

createNotificationDispatcher — @gj-kit/nest-notifications

A public function from @gj-kit/nest-notifications/core. The signature below is taken directly from the 0.1.1 release declaration.

import { createNotificationDispatcher } from '@gj-kit/nest-notifications/core';
/**
* Builds the dispatch stage of the pipeline.
*
* One pass claims a page of due deliveries — the claim also stamps the
* presentation lock, which is what freezes what the user will read (D1) — writes
* exactly one inbox message per delivery (G4), then hands the payload to the
* transport. The push handoff is at-least-once and lives outside the
* transaction, so a duplicate banner is a documented cost rather than a bug
* (design 3.1 G5).
*/
declare function createNotificationDispatcher(options: NotificationDispatcherOptions): NotificationDispatcher;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-notifications
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub