Interface Pipe<Context>

A pipe that runs a series of steps in order.

interface Pipe<Context> {
    steps: readonly Step<Context>[];
    add(...stepsAoAdd: Step<Context>[]): this;
    run(ctx: Context): Promise<Context>;
}

Type Parameters

  • Context

    The context type.

Properties

Methods

Properties

steps: readonly Step<Context>[]

The steps in the pipe.

Methods

  • Adds one or more steps to the pipe.

    Parameters

    Returns this