UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

10 lines (9 loc) 368 B
import { FunctionPromiseA1 } from './types'; /** * Apply the mapper action function to each element of the traversable collection, * resolving the results synchronously. * * @param {function} fn Action function * @param {any[]} traversable Array of items */ export default function map<A, B>(fn: FunctionPromiseA1<A, B>, traversable: A[]): Promise<B[] | Error>;