Skip to content

Home > @idealeap/pipeline > PipeRegistry > register

PipeRegistry.register() method

Signature:

typescript
register(type: string, callback: (input: any, context: PipelineContext) => MaybePromise<any>): void;
register(type: string, callback: (input: any, context: PipelineContext) => MaybePromise<any>): void;

Parameters

ParameterTypeDescription
typestring
callback(input: any, context: PipelineContext) => MaybePromise<any>

Returns:

void

Released under the MIT License.