UNPKG

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) 496 B
/** * @internal * * A util function converting ReadableStream into an async iterable. * Reference: https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate */ export declare const readableStreamtoIterable: <T>(readableStream: ReadableStream<T>) => AsyncIterable<T>; /** * @internal * * A util function converting async iterable to a ReadableStream. */ export declare const iterableToReadableStream: <T>(asyncIterable: AsyncIterable<T>) => ReadableStream<T>;