Installation
npm install --save @types/s3-streams
Summary
This package contains type definitions for s3-streams (https://github.com/izaakschroeder/s3-streams).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3-streams.
index.d.ts
/// <reference types="node" />
import { S3 } from "aws-sdk2-types";
import { Readable, Writable } from "stream";
export interface StreamOptions {
/**
* Number of bytes to read or write before emitting a chunk to the stream.
* Must be above 5MB for {@link WriteStream}
*
* @default 4MB for {@link ReadStream}
* @default 10MB for {@link WriteStream}
*/
highWaterMark?: number | undefined;
}
export class ReadStream extends Readable {
constructor(client: S3, options: S3.GetObjectRequest, streamOptions?: StreamOptions);
}
export class WriteStream extends Writable {
constructor(client: S3, options: S3.CreateMultipartUploadRequest, streamOptions?: StreamOptions);
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/aws-sdk2-types, @types/node
Credits
These definitions were written by Carl Fürstenberg.