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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”context
Section titled “context”string | symbol | PipelineItemToken<T>
customMessage?
Section titled “customMessage?”string
Returns
Section titled “Returns”T