Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PipeNode<Args, Return>

Type parameters

  • Args: any[]

  • Return

Hierarchy

  • PipeNode

Index

Constructors

Properties

Methods

Constructors

constructor

  • new PipeNode(fn: (...args: Args) => Return): PipeNode
  • Parameters

    • fn: (...args: Args) => Return
        • (...args: Args): Return
        • Parameters

          • Rest ...args: Args

          Returns Return

    Returns PipeNode

Properties

Readonly get

get: (...args: Args) => Return

Resulting function of the pipeline

param

It's either

  • the same parameters of the first function of the pipeline (when pipe is used)
  • or empty (when pass is used)
returns

Result of the last function of the pipeline

Type declaration

    • (...args: Args): Return
    • Parameters

      • Rest ...args: Args

      Returns Return

Methods

to

  • to<NextReturn, Tail>(fn: (pipedValue: Return, ...tailArgs: Tail) => NextReturn, ...tailArgs: Tail): PipeNode<Args, NextReturn>
  • Add a node to the pipeline

    Type parameters

    • NextReturn

    • Tail: any[]

    Parameters

    • fn: (pipedValue: Return, ...tailArgs: Tail) => NextReturn

      Function of the node

        • (pipedValue: Return, ...tailArgs: Tail): NextReturn
        • Parameters

          • pipedValue: Return
          • Rest ...tailArgs: Tail

          Returns NextReturn

    • Rest ...tailArgs: Tail

      Parameters of fn without the first one

    Returns PipeNode<Args, NextReturn>

    Another node of the pipeline

Generated using TypeDoc