Files
DefinitelyTyped/types/s3-upload-stream/index.d.ts
Andy dae4a527d7 Fix "../tslint.json" to "dtslint.json" (#15957)
* Fix "../tslint.json" to "dtslint.json"

* Fix errors
2017-04-18 10:35:52 -07:00

24 lines
758 B
TypeScript

// 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;