From 5d51369b02b48a87e5195af1a2a1dcce356fcb3a Mon Sep 17 00:00:00 2001 From: theodorz Date: Wed, 20 Jan 2016 17:37:04 +0100 Subject: [PATCH] Update to fix S3 with latest AWS SDK I removed the nested S3 Client interface, because it doesn't seem to be present in the latest AWS JS SDK (2.2.31). --- aws-sdk/aws-sdk.d.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/aws-sdk/aws-sdk.d.ts b/aws-sdk/aws-sdk.d.ts index f89059463..3fef2702e 100644 --- a/aws-sdk/aws-sdk.d.ts +++ b/aws-sdk/aws-sdk.d.ts @@ -147,7 +147,8 @@ declare module "aws-sdk" { export class S3 { constructor(options?: any); - public client: s3.Client; + putObject(params: s3.PutObjectRequest, callback: (err: any, data: any) => void): void; + getObject(params: s3.GetObjectRequest, callback: (err: any, data: any) => void): void; } export class DynamoDB { @@ -1042,14 +1043,7 @@ declare module "aws-sdk" { } export module s3 { - - export interface Client { - config: ClientConfig; - - putObject(params: PutObjectRequest, callback: (err: any, data: any) => void): void; - getObject(params: GetObjectRequest, callback: (err: any, data: any) => void): void; - } - + export interface PutObjectRequest { ACL?: string; Body?: any;