Skip to content

notificationPriorityFrom — @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 { notificationPriorityFrom } from '@gj-kit/nest-notifications/core';
/**
* Narrows a stored priority string. Stores hand back plain strings, so this
* conversion still exists; unlike the source it throws a typed error rather than
* a bare one, and the dispatcher lets that failure kill one delivery instead of
* the page (design 3.3.4).
*/
declare function notificationPriorityFrom(value: string): NotificationPriority;

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