Skip to content

Commit ccf6405

Browse files
committed
Fix streams types
1 parent af3dffd commit ccf6405

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

registry/lib/streams.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
declare type AnyIterable<T> = Iterable<T> | AsyncIterable<T>
1+
/// <reference types="node" />
2+
declare type AnyIterable<T> =
3+
| Iterable<T>
4+
| AsyncIterable<T>
5+
| NodeJS.ReadableStream
26
declare const Streams: {
37
parallelForEach<T>(
48
concurrency: number,
59
func: (data: T) => Promise<void>,
6-
iterable: AsyncIterable<T>
10+
iterable: AnyIterable<T>
711
): Promise<void>
812
parallelMap<T, R>(
913
concurrency: number

0 commit comments

Comments
 (0)