Type alias Chainer<I>

Chainer<I>: {
    next: NextChainer<I>;
    then: NextPromise<I>;
    value: I;
}

Used to chain multiple function calls in a curry-like style.

Type Parameters

  • I

Type declaration

  • next: NextChainer<I>

    Takes value and apply it to next. Use it's result to create a new chainer.

    Param

    See

    chainer

  • then: NextPromise<I>

    Takes value and apply it to next. Use it's result to create a promise with.

    Param

  • value: I

    The current value of the chainer.

Generated using TypeDoc