Skip to content

requirePipelineItem

requirePipelineItem<T>(context, token, customMessage?): T

Defined in: packages/pipeline/src/pipeline-items.ts:49

Reads a required item, throwing MissingPipelineItemError for absent or undefined values. Null and other falsy values are returned unchanged. No runtime type validation occurs. The optional custom message supplements the item, request and handler diagnostic.

T

IPipelineContext

string | symbol | PipelineItemToken<T>

string

T