瀏覽代碼

allow empty objects for `fields` types (#4631)

Antoine du Hamel 1 年之前
父節點
當前提交
3205cc3500
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/@uppy/aws-s3-multipart/types/index.d.ts
  2. 1 1
      packages/@uppy/aws-s3/types/index.d.ts

+ 1 - 1
packages/@uppy/aws-s3-multipart/types/index.d.ts

@@ -11,7 +11,7 @@ export type AwsS3UploadParameters = {
 } | {
   method?: 'PUT'
   url: string
-  fields?: never
+  fields?: Record<string, never>
   expires?: number
   headers?: Record<string, string>
 }

+ 1 - 1
packages/@uppy/aws-s3/types/index.d.ts

@@ -12,7 +12,7 @@ export type AwsS3UploadParameters = {
 } | {
   method: 'PUT'
   url: string
-  fields?: never
+  fields?: Record<string, never>
   expires?: number
   headers?: Record<string, string>
 }