(...operators: Array<PipedOperator<any, any>>)
| 49 | * Creates a new stream by piping the input stream through a series of operators |
| 50 | */ |
| 51 | export function pipe<T>(...operators: Array<PipedOperator<any, any>>) { |
| 52 | return (stream: IStreamBuilder<T>): IStreamBuilder<T> => { |
| 53 | return stream.pipe(...operators) |
| 54 | } |
| 55 | } |