mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
631 B
TypeScript
22 lines
631 B
TypeScript
// Type definitions for s3-download-stream 0.1
|
|
// Project: https://github.com/jb55/s3-download-stream
|
|
// Definitions by: Caleb Everett <https://github.com/everettcaleb>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
import { Readable } from "stream";
|
|
import { S3 } from "aws-sdk";
|
|
|
|
declare namespace s3Stream {
|
|
interface S3StreamDownloaderOptions {
|
|
client: S3;
|
|
concurrency?: number;
|
|
chunkSize?: string;
|
|
params: S3.GetObjectRequest;
|
|
}
|
|
}
|
|
|
|
declare function s3Stream(options: s3Stream.S3StreamDownloaderOptions): Readable;
|
|
export = s3Stream;
|