UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

9 lines (8 loc) 280 B
import { FunctionA1 } from '../types'; /** * Process a sequence of promises synchronously and return a promise that resolves to * an array of results. * * @param {Promise[]} ps */ export default function sequence<A>(ps: FunctionA1<void, Promise<A>>[]): Promise<A[] | Error>;