UNPKG

softkave-js-utils

Version:

JavaScript & Typescript utility functions, types, and classes

5 lines (4 loc) 332 B
import { AnyFn } from '../types.js'; import { LoopAsyncSettlementType } from './types.js'; /** See {@link loop} */ export declare function loopAsync<TOtherParams extends unknown[], TFn extends AnyFn<[number, ...TOtherParams]>>(fn: TFn, max: number, settlement: LoopAsyncSettlementType, ...otherParams: TOtherParams): Promise<void>;