From 879c918b441da7b257d12261f2a2d8d63cb091c4 Mon Sep 17 00:00:00 2001 From: Caleb Everett Date: Mon, 5 Feb 2018 12:07:56 -0500 Subject: [PATCH] Fixed build errors from Travis CI --- types/s3-download-stream/index.d.ts | 8 ++++---- types/s3-download-stream/s3-download-stream-tests.ts | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/types/s3-download-stream/index.d.ts b/types/s3-download-stream/index.d.ts index 20729b7d47..defd116e7c 100644 --- a/types/s3-download-stream/index.d.ts +++ b/types/s3-download-stream/index.d.ts @@ -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; } } diff --git a/types/s3-download-stream/s3-download-stream-tests.ts b/types/s3-download-stream/s3-download-stream-tests.ts index 1fede898bb..cf1176203d 100644 --- a/types/s3-download-stream/s3-download-stream-tests.ts +++ b/types/s3-download-stream/s3-download-stream-tests.ts @@ -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'));