UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

8 lines (7 loc) 301 B
/** * Caution: the input stream must be destroyed separately, this function does not do so. * @internal * @param stream * @param bytes - read head bytes from the stream and discard the rest of it. */ export declare function headStream(stream: ReadableStream, bytes: number): Promise<Uint8Array>;