mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 10:56:19 +08:00
24 lines
758 B
TypeScript
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;
|