UNPKG

@kui-shell/core

Version:

An Electron-based shell for cloud-native development

7 lines (6 loc) 200 B
/** * Map a asynchronous function to an array sequentially from front to * back. * */ export declare function promiseEach<T, R>(arr: T[], fn: (t: T, idx: number) => R | Promise<R>): Promise<R[]>;