UNPKG

web-stream-map

Version:

A map function for Web Streams with concurrency support. Like node's ReadableStream.map(), but for Web Streams.

5 lines (4 loc) 135 B
export default function sMap<T, U>( fn: (chunk: T) => Promise<U> | U, options?: { concurrency?: number } ): TransformStream<T, U>;