We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd36ea commit 3100efbCopy full SHA for 3100efb
1 file changed
packages/nodejs-lib/src/stream/pipeline.ts
@@ -8,6 +8,7 @@ import { createAbortableSignal } from '@naturalcycles/js-lib'
8
import { _passthroughPredicate } from '@naturalcycles/js-lib/types'
9
import type {
10
AbortableAsyncMapper,
11
+ AbortableMapper,
12
AsyncIndexedMapper,
13
AsyncPredicate,
14
END,
@@ -437,7 +438,7 @@ export class Pipeline<T = unknown> {
437
438
}
439
440
async forEachSync(
- fn: IndexedMapper<T, void | typeof END>,
441
+ fn: AbortableMapper<T, void>,
442
opt: TransformMapSyncOptions<T, void> & TransformLogProgressOptions<T> = {},
443
): Promise<void> {
444
this.transforms.push(
0 commit comments