Skip to content

asyncPipe<T>

Utility function that allows for piping a series of async functions together that operate on a common type T

Usage

Returns

T

The result of the last function in the pipe chain

Parameters

fns: Array<(x: T) => Promise<T>>

The array of functions to pipe together