目录

StartDownloadAction

The action to be taken when starting a download.

type StartDownloadAction = 'cancel' | 'prompt' | FilePath;

Types 

'cancel' 

Cancel the download.

'prompt' 

Prompt the user for a file path. This will show a prompt dialog to the user to select a file path to save the download to. If the user cancels the dialog, the download will be canceled.

FilePath 

The absolute file path to save the download to. If the file already exists, then it will be overwritten.