serverless-spy
Version:
CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.
14 lines (13 loc) • 486 B
TypeScript
/// <reference types="node" />
import { Readable } from "stream";
/**
* Convert object stream piped in into an async iterable. This
* daptor should be deprecated when Node stream iterator is stable.
* Caveat: this adaptor won't have backpressure to inwards stream
*
* Reference: https://nodejs.org/docs/latest-v11.x/api/stream.html#stream_readable_symbol_asynciterator
*/
/**
* @internal
*/
export declare function readabletoIterable<T>(readStream: Readable): AsyncIterable<T>;