0.4.6 • Published 7 months ago
@types/s3-streams v0.4.6
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
// Type definitions for s3-streams 0.4
// Project: https://github.com/izaakschroeder/s3-streams
// Definitions by: Carl Fürstenberg <https://github.com/azatoth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { S3 } from 'aws-sdk';
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, 19 Apr 2022 16:31:33 GMT
- Dependencies: @types/aws-sdk, @types/node
- Global values: none
Credits
These definitions were written by Carl Fürstenberg.