Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

ContextSource

Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:7

A value kept for the current execution by the package that owns it, such as tenantSource of @nestjs-pipeline/tenant.

current(): string | undefined

Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:9

The value of the current execution, or undefined for none.

string | undefined


run<T>(value, fn): T

Defined in: packages/pipeline-job-context/src/interfaces/context-source.interface.ts:11

Runs fn with value as the current value for everything it calls.

T

string | undefined

() => T

T