Skip to content

Commit

Permalink
Export AwsS3UploadParameters & AwsS3Options interfaces (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyndria committed Aug 8, 2022
1 parent c8ee49d commit a5c73c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/aws-s3/types/index.d.ts
Expand Up @@ -2,14 +2,14 @@ import type { PluginOptions, BasePlugin, UppyFile } from '@uppy/core'

type MaybePromise<T> = T | Promise<T>

interface AwsS3UploadParameters {
export interface AwsS3UploadParameters {
method?: string
url: string
fields?: { [type: string]: string }
headers?: { [type: string]: string }
}

interface AwsS3Options extends PluginOptions {
export interface AwsS3Options extends PluginOptions {
companionUrl?: string
getUploadParameters?: (file: UppyFile) => MaybePromise<AwsS3UploadParameters>
metaFields?: string[]
Expand Down

0 comments on commit a5c73c3

Please sign in to comment.