compileHandlerPlan
compileHandlerPlan(
handlerType,kind,globalBehaviors?):object
Defined in: packages/pipeline/src/services/pipeline-setup.ts:131
Compiles the pipeline a handler class declares with @UsePipeline and
@SkipPipeline, together with the global behaviors that match its kind.
Parameters
Section titled “Parameters”handlerType
Section titled “handlerType”globalBehaviors?
Section titled “globalBehaviors?”GlobalBehaviorsOptions | GlobalBehaviorsOptions[]
Returns
Section titled “Returns”object
behaviorTypes
Section titled “behaviorTypes”behaviorTypes:
Constructor<IPipelineBehavior<unknown,unknown>>[]
globalBehaviorIds
Section titled “globalBehaviorIds”globalBehaviorIds:
Set<BehaviorId>
globalOptions
Section titled “globalOptions”globalOptions:
Map<BehaviorId,Record<string,unknown>> =globals.globalOptions
handlerBehaviorTypes
Section titled “handlerBehaviorTypes”handlerBehaviorTypes:
Constructor<IPipelineBehavior<unknown,unknown>>[] |undefined
handlerOptions
Section titled “handlerOptions”handlerOptions:
Map<BehaviorId,Record<string,unknown>> |undefined
hasPipeline
Section titled “hasPipeline”hasPipeline:
boolean
mergedOptions
Section titled “mergedOptions”mergedOptions:
Map<BehaviorId,Record<string,unknown>>
Throws
Section titled “Throws”Error when the handler both declares and skips one behavior.