Home > @idealeap/pipeline > Pipe > create
Pipe.create() method 
Creates and returns a new Pipe instance. This static method is designed to support chaining.
Signature:
typescript
static create<T, R>(callback: (input: T, context: PipelineContext) => MaybePromise<R>, options?: Partial<PipeOptions<T, R>>): Pipe<T, R>;static create<T, R>(callback: (input: T, context: PipelineContext) => MaybePromise<R>, options?: Partial<PipeOptions<T, R>>): Pipe<T, R>;Parameters 
| Parameter | Type | Description | 
|---|---|---|
| callback | (input: T, context: PipelineContext) => MaybePromise<R> | The core processing function for the new pipe. | 
| options | Partial<PipeOptions<T, R>> | (Optional) Optional configuration options for the new pipe. | 
Returns:
Pipe<T, R>
A new instance of the Pipe.