Installation
npm install --save @types/jrf-pip
Summary
This package contains type definitions for jrf-pip (https://github.com/jirufik/jrf-pip#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jrf-pip.
index.d.ts
interface ParallelProcessingParams<T> {
arrayValues: T[];
processingFn(params: ProcessingFnParams<T>): void | Promise<void>;
nextValueFn?(params: NextValueFnParams<T>): boolean | Promise<boolean>;
cycleTimeout?: number | undefined;
parallel?: number | undefined;
awaitRes?: boolean | undefined;
cb?(stackError: StackError<T>): void | Promise<void>;
}
interface ProcessingFnParams<T> {
value: T;
index: number;
arrayValues: T[];
iteration: number;
}
interface NextValueFnParams<T> {
value: T;
index: number;
arrayValues: T[];
iteration: number;
}
interface StackError<T> {
value: T;
index: number;
iteration: number;
error: any;
}
declare function parallelProcessing<T>(params: ParallelProcessingParams<T>): Promise<Array<StackError<T>>> | undefined;
export = parallelProcessing;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by rufus.