13 lines
345 B
TypeScript
Raw Normal View History

export type MapAsync<T = any, R = any> = lodash.CurriedFunction3<
T[],
(element: T, index: number) => R | Promise<R>,
{ concurrency?: number },
Promise<R[]>
>;
2023-02-06 11:06:18 +01:00
export type MapAsyncDialects<T = any, R = any> = (
array: T[],
func: (element: T, index: number) => R | Promise<R>,
options?: { concurrency?: number }
) => Promise<R[]>;