Skip to content

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