Skip to content

Commit 1f7ccf0

Browse files
authored
fix(lib-storage): update Upload params type to intersection of all S3 upload command inputs (#7316)
1 parent 39f1713 commit 1f7ccf0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/lib-storage/src/types.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { PutObjectCommandInput, S3Client, Tag } from "@aws-sdk/client-s3";
1+
import {
2+
CompleteMultipartUploadCommandInput,
3+
CreateMultipartUploadCommandInput,
4+
PutObjectCommandInput,
5+
S3Client,
6+
Tag,
7+
UploadPartCommandInput,
8+
} from "@aws-sdk/client-s3";
29
import type { AbortController } from "@smithy/types";
310

411
export interface Progress {
@@ -52,7 +59,8 @@ export interface Options extends Partial<Configuration> {
5259
/**
5360
* This is the data that is uploaded.
5461
*/
55-
params: PutObjectCommandInput;
62+
params: PutObjectCommandInput &
63+
Partial<CreateMultipartUploadCommandInput & UploadPartCommandInput & CompleteMultipartUploadCommandInput>;
5664

5765
/**
5866
* A service client.

0 commit comments

Comments
 (0)