mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-22 11:22:53 +08:00
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:
1 parent
fab683ca77
commit
5d51369b02
1 file changed
+3
-9
Vendored
+3
-9
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user