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.
9 lines (8 loc) • 339 B
TypeScript
/// <reference types="node" />
import type { Readable } from "stream";
/**
* @param stream
* @returns stream split into two identical streams.
*/
export declare function splitStream(stream: Readable): Promise<[Readable, Readable]>;
export declare function splitStream(stream: ReadableStream): Promise<[ReadableStream, ReadableStream]>;