Home > @idealeap/pipeline > Pipeline > addPipe
Pipeline.addPipe() method
Adds one or more pipes to the pipeline.
Signature:
typescript
addPipe<T, R>(pipe: Pipe<T, R> | Pipe<T, R>[]): this;addPipe<T, R>(pipe: Pipe<T, R> | Pipe<T, R>[]): this;Parameters
| Parameter | Type | Description |
|---|---|---|
| pipe | Pipe<T, R> | Pipe<T, R>[] | A single pipe or an array of pipes to add to the pipeline. |
Returns:
this
The updated pipeline instance.