prray
Version:
'Promisified' Array, comes with async method supports(such as mapAsync). And it is compatible with normal array.
5 lines • 481 B
TypeScript
export declare type IMapCallback<T, U> = (currentValue: T, currentIndex: number, array: T[]) => U | Promise<U>;
export declare type ICallback<T> = (currentValue: T, currentIndex: number, array: T[]) => any;
export declare type ITester<T> = (currentValue: T, currentIndex: number, array: T[]) => boolean | Promise<boolean>;
export declare type IReduceCallback<T, U> = (pre: U, currentValue: T, currentIndex: number, array: T[]) => U | Promise<U>;
//# sourceMappingURL=types.d.ts.map