Ver código fonte

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 anos atrás
pai
commit
93578e8ba3
1 arquivos alterados com 2 adições e 0 exclusões
  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    
   }
 }