Skip to content

Commit

Permalink
@uppy/aws-s3-multipart: fix singPart type (#4224)
Browse files Browse the repository at this point in the history
  • Loading branch information
schonert authored Nov 17, 2022
1 parent eafe300 commit bffd5dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@uppy/aws-s3-multipart/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export interface AwsS3Part {
Size?: number
ETag?: string
}
export interface AwsS3SignedPart {
url: string
headers?: Record<string, string>
}

export interface AwsS3MultipartOptions extends PluginOptions {
companionHeaders?: { [type: string]: string }
Expand All @@ -23,7 +27,7 @@ export interface AwsS3MultipartOptions extends PluginOptions {
signPart?: (
file: UppyFile,
opts: { uploadId: string; key: string; partNumber: number; body: Blob, signal: AbortSignal }
) => MaybePromise<AwsS3Part>
) => MaybePromise<AwsS3SignedPart>
/** @deprecated Use signPart instead */
prepareUploadParts?: (
file: UppyFile,
Expand Down

0 comments on commit bffd5dc

Please sign in to comment.