@@ -265,7 +265,8 @@ var files = [
265
265
}
266
266
];
267
267
268
- var uploadBegin = (response) = > {
268
+ var upload
269
+ = (response) = > {
269
270
var jobId = response. jobId;
270
271
console. log(' UPLOAD HAS BEGUN! JobId: ' + jobId);
271
272
};
@@ -335,8 +336,8 @@ type ReadDirItem = {
335
336
name: string; // The name of the item
336
337
path: string; // The absolute path to the item
337
338
size: string; // Size in bytes
338
- isFile: () = > boolean ; // Is the file just a file?
339
- isDirectory: () = > boolean ; // Is the file a directory?
339
+ isFile: () = > boolean ; // Is the item just a file?
340
+ isDirectory: () = > boolean ; // Is the item a directory?
340
341
};
341
342
```
342
343
@@ -375,7 +376,7 @@ type StatResult = {
375
376
path: // The same as filepath argument
376
377
ctime: date; // The creation date of the file
377
378
mtime: date; // The last modified date of the file
378
- size: string ; // Size in bytes
379
+ size: number ; // Size in bytes
379
380
mode: number; // UNIX file mode
380
381
originalFilepath: string; // ANDROID: In case of content uri this is the pointed file path, otherwise is the same as path
381
382
isFile: () = > boolean ; // Is the file just a file?
@@ -558,7 +559,7 @@ type DownloadFileOptions = {
558
559
cacheable?: boolean ; // Whether the download can be stored in the shared NSURLCache (iOS only, defaults to true)
559
560
progressInterval?: number;
560
561
progressDivider?: number;
561
- begin?: (res: DownloadBeginCallbackResult ) = > void ;
562
+ begin?: (res: DownloadBeginCallbackResult ) = > void ; // Note: it is required when progress prop provided
562
563
progress?: (res: DownloadProgressCallbackResult ) = > void ;
563
564
resumable?: () = > void ; // only supported on iOS yet
564
565
connectionTimeout?: number // only supported on Android yet
0 commit comments