콘텐츠로 이동

NestNotificationsModule — @gj-kit/nest-notifications

@gj-kit/nest-notifications에서 공개하는 class입니다. package version 0.1.1의 release declaration을 그대로 표시합니다.

import { NestNotificationsModule } from '@gj-kit/nest-notifications';
/**
* The notification pipeline as a Nest module.
*
* Deliberately not `@Global()`: a host that wants these providers everywhere says
* so itself. Everything the pipeline needs is a required option, because a
* silently working default would mean the library chose someone's product policy
* — the store trio, the presenter, the policy and the application key have no
* defaults for exactly that reason.
*/
declare class NestNotificationsModule {
/**
* Synchronous wiring. Configuration is validated here, at assembly time: an
* empty `applicationKey` or `providers` list fails to boot rather than failing
* on the scheduler's first call.
*/
static forRoot(options: NestNotificationsOptions): DynamicModule;
/**
* Asynchronous wiring, for hosts whose stores or policy come from other
* providers. The same assembly-time validation runs immediately after the
* factory resolves, so the boot-failure guarantee survives this path.
*/
static forRootAsync(options: NestNotificationsAsyncOptions): DynamicModule;
}

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/nest-notifications
  • 버전: 0.1.1
  • 공개 entry: .
  • 소스: GitHub

The notification pipeline as a Nest module.

Deliberately not @Global(): a host that wants these providers everywhere says so itself. Everything the pipeline needs is a required option, because a silently working default would mean the library chose someone’s product policy — the store trio, the presenter, the policy and the application key have no defaults for exactly that reason.