0.4.6 • Published 7 months ago

@types/s3-streams v0.4.6

Weekly downloads
429
License
MIT
Repository
github
Last release
7 months ago

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

Credits

These definitions were written by Carl Fürstenberg.

0.4.5

7 months ago

0.4.4

8 months ago

0.4.6

7 months ago

0.4.3

1 year ago

0.4.2

2 years ago

0.4.1

3 years ago

0.4.0

4 years ago