mapStream
mapStream<
T>(stream,mapper):AsyncGenerator<T,void,undefined>
Defined in: streaming.ts:181
Map stream chunks.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”stream
Section titled “stream”Original stream
mapper
Section titled “mapper”(chunk) => T
Mapping function
Returns
Section titled “Returns”AsyncGenerator<T, void, undefined>
Mapped stream