Installation
npm install --save @types/run-parallel
Summary
This package contains type definitions for run-parallel (https://github.com/feross/run-parallel).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/run-parallel.
declare namespace RunParallel {
type TaskCallback<T> = (err: Error | null, results?: T) => void;
type Task<T> = (callback: TaskCallback<T>) => void;
type TaskObj<T> = Record<string, Task<T>>;
type Callback<T> = (err: Error, results: T) => void;
}
declare function RunParallel<T>(tasks: Array<RunParallel.Task<T>>): T[];
declare function RunParallel<T>(tasks: Array<RunParallel.Task<T>>, callback: RunParallel.Callback<T[]>): void;
declare function RunParallel<T>(tasks: RunParallel.TaskObj<T>): Record<string, T>;
declare function RunParallel<T>(tasks: RunParallel.TaskObj<T>, callback: RunParallel.Callback<Record<string, T>>): void;
export = RunParallel;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by mrmlnc.