mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Fixed build errors from Travis CI
This commit is contained in:
Vendored
+4
-4
@@ -10,10 +10,10 @@ import { S3 } from "aws-sdk";
|
||||
|
||||
declare namespace s3Stream {
|
||||
interface S3StreamDownloaderOptions {
|
||||
client: S3,
|
||||
concurrency?: number,
|
||||
chunkSize?: string,
|
||||
params: S3.GetObjectRequest
|
||||
client: S3;
|
||||
concurrency?: number;
|
||||
chunkSize?: string;
|
||||
params: S3.GetObjectRequest;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import * as fs from "fs";
|
||||
|
||||
// Documentation for "params":
|
||||
// http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property
|
||||
var config = {
|
||||
const config = {
|
||||
client: new AWS.S3({}),
|
||||
concurrency: 6,
|
||||
chunkSize: '512KB',
|
||||
@@ -12,7 +12,6 @@ var config = {
|
||||
Key: 'key-name',
|
||||
Bucket: 'bucket-name'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
S3Stream(config)
|
||||
.pipe(fs.createWriteStream('/path/to/a/file'));
|
||||
S3Stream(config).pipe(fs.createWriteStream('/path/to/a/file'));
|
||||
|
||||
Reference in New Issue
Block a user