콘텐츠로 이동

NotificationRelayRunner — @gj-kit/nest-notifications

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

import { NotificationRelayRunner } from '@gj-kit/nest-notifications';
/**
* 러너 — 주기 실행자가 부르는 것은 `run()`이다(설계 §3.8.2).
*
* 반환 타입이 곧 계약이다: `run(): Promise<Summary>`가 정확성 경로이고
* `NotificationPipelineWakeup.request(): void`가 지연 경로다. 두 요약 타입이 **type alias**라
* `Record<string, unknown>`에 구조적으로 대입되므로, 형제 잡 패키지의 어댑터가 12줄이 된다
* — 그것은 의존이 아니라 구조적 호환의 결과다(설계 §0.4-③).
*/
/** Injectable wrapper whose `run()` is what a scheduler calls. */
declare class NotificationRelayRunner {
#private;
constructor(relay: NotificationRelay);
/** One relay pass. Never throws for a single failed row; the summary reports it. */
run(): Promise<NotificationRelaySummary>;
}

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

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

Injectable wrapper whose run() is what a scheduler calls.