1.0.7 • Published 6 months ago
@types/s3-upload-stream v1.0.7
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
- Last updated: Tue, 19 Apr 2022 16:31:33 GMT
- Dependencies: @types/aws-sdk, @types/node
- Global values: none
Credits
These definitions were written by Joshua DeVinney.