@types/s3-streams
TypeScript icon, indicating that this package has built-in type declarations

0.4.6 • Public • Published

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

Credits

These definitions were written by Carl Fürstenberg.

/@types/s3-streams/

    Package Sidebar

    Install

    npm i @types/s3-streams

    Weekly Downloads

    654

    Version

    0.4.6

    License

    MIT

    Unpacked Size

    4.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • types