1.0.7 • Published 6 months ago

@types/s3-upload-stream v1.0.7

Weekly downloads
2,510
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/s3-upload-stream

Summary

This package contains type definitions for s3-upload-stream (https://github.com/nathanpeck/s3-upload-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3-upload-stream.

index.d.ts

// Type definitions for s3-upload-stream 1.0
// Project: https://github.com/nathanpeck/s3-upload-stream
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as stream from 'stream';
import * as AWS from 'aws-sdk';

declare namespace s3Stream {
    interface S3StreamUploader {
        upload(destinationDetails: AWS.S3.PutObjectRequest, sessionDetails?: any): S3WriteStream;
    }

    interface S3WriteStream extends stream.Writable {
        maxPartSize(sizeInBytes: number): void;
        concurrentParts(numberOfParts: number): void;
    }
}

declare function s3Stream(client: AWS.S3): s3Stream.S3StreamUploader;
export = s3Stream;

Additional Details

Credits

These definitions were written by Joshua DeVinney.

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.2

7 years ago

0.0.1

8 years ago