Options
All
  • Public
  • Public/Protected
  • All
Menu

Class for chaining the result of one function into another.

Type parameters

  • T

Hierarchy

  • Pipe

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Pipe(input: T): Pipe

Properties

result

result: T

The result returned by the previous function.

Methods

then

  • then<U>(next: (value: T) => U): Pipe<U>
  • Executes the specified function, passing the current result as an input.

    Type parameters

    • U

    Parameters

    • next: (value: T) => U

      A function taking the last result and returning a new result which can then be piped again.

        • (value: T): U
        • Parameters

          • value: T

          Returns U

    Returns Pipe<U>

Legend

  • Constructor
  • Property
  • Property

Generated using TypeDoc