Quellcode durchsuchen

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 vor 4 Jahren
Ursprung
Commit
93578e8ba3
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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    
   }
 }