Fix Flow error for DownloadFileOptions type
This commit is contained in:
parent
7346a5f4b0
commit
6f2f5cd3fa
|
@ -59,12 +59,14 @@ type DownloadFileOptions = {
|
|||
fromUrl: string; // URL to download file from
|
||||
toFile: string; // Local filesystem path to save the file to
|
||||
headers?: Headers; // An object of headers to be passed to the server
|
||||
background?: boolean; // iOS only
|
||||
background?: boolean; // Continue the download in the background after the app terminates (iOS only)
|
||||
discretionary?: boolean; // Allow the OS to control the timing and speed of the download to improve perceived performance (iOS only)
|
||||
progressDivider?: number;
|
||||
readTimeout?: number;
|
||||
connectionTimeout?: number;
|
||||
begin?: (res: DownloadBeginCallbackResult) => void;
|
||||
progress?: (res: DownloadProgressCallbackResult) => void;
|
||||
resumable?: () => void; // only supported on iOS yet
|
||||
connectionTimeout?: number; // only supported on Android yet
|
||||
readTimeout?: number; // supported on Android and iOS
|
||||
};
|
||||
|
||||
type DownloadBeginCallbackResult = {
|
||||
|
|
Loading…
Reference in New Issue