瀏覽代碼

Add missing option types to XHRUploadOptions (#2639)

withCredentials and responseType are available options when using XHRUpload, but they are not included in the type signature of XHRUploadOptions
Brett Aaron 4 年之前
父節點
當前提交
93578e8ba3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/@uppy/xhr-upload/types/index.d.ts

+ 2 - 0
packages/@uppy/xhr-upload/types/index.d.ts

@@ -14,6 +14,8 @@ declare module XHRUpload {
     endpoint: string
     method?: 'GET' | 'POST' | 'PUT' | 'HEAD' | 'get' | 'post' | 'put' | 'head'
     locale?: XHRUploadLocale
+    responseType?: string
+    withCredentials?: boolean    
   }
 }