Forráskód Böngészése

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 éve
szülő
commit
93578e8ba3
1 módosított fájl, 2 hozzáadás és 0 törlés
  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    
   }
 }