File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ declare module "react-native-background-upload" {
93
93
* in the context of ShareExtension.
94
94
*/
95
95
appGroup ?: string ;
96
+ // Necessary only for multipart type upload
97
+ field ?: string
96
98
}
97
99
98
100
export interface MultipartUploadOptions extends UploadOptions {
@@ -108,7 +110,7 @@ declare module "react-native-background-upload" {
108
110
export type UploadListenerEvent = 'progress' | 'error' | 'completed' | 'cancelled'
109
111
110
112
export default class Upload {
111
- static startUpload ( options : UploadOptions ) : Promise < uploadId >
113
+ static startUpload ( options : UploadOptions | MultipartUploadOptions ) : Promise < uploadId >
112
114
static addListener ( event : UploadListenerEvent , uploadId : uploadId , data : object ) : void
113
115
static addListener ( event : 'progress' , uploadId : uploadId , data : ProgressData ) : void
114
116
static addListener ( event : 'error' , uploadId : uploadId , data : ErrorData ) : void
You can’t perform that action at this time.
0 commit comments