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).
This commit is contained in:
theodorz
2016-01-20 17:37:04 +01:00
parent fab683ca77
commit 5d51369b02
+3 -9
View File
@@ -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;