Options
All
  • Public
  • Public/Protected
  • All
Menu

Module pipeA

Callable

  • Pipe a value through a series of transformers, where the value can be a promise and transformers can return promises.

    Type parameters

    • T

    Parameters

    • value: PossiblePromise<T>

      The value to send through the pipeline. This may be a promise.

    Returns PipeA<T>

    An object with a .value method for getting a promise of the transformed value, and a .thru method for piping the value through another transformer.

Index

Variables

Variables

Const thru

thru: piperA = piperA

Create a series of transformers to pipe a value through, where the value can be a promise and transformers can return promises.

param

A function that transforms the value. This may return a promise.

returns

run - Takes a value and runs it through the pipeline. Also has a .thru method for adding another function to the pipeline.

Generated using TypeDoc