inceptum
Version:
hipages take on the foundational library for enterprise-grade apps written in NodeJS
7 lines (6 loc) • 313 B
TypeScript
export declare abstract class PromiseUtil {
static try(f: any): Promise<any>;
static map(arr: any[], f: (this: void, value: any, index: number, array: any[]) => any): Promise<any[]>;
static mapSeries(arr: any, f: any): Promise<any[]>;
static sleepPromise<H>(ms: any, returnVal?: H): Promise<H>;
}