docs: specify string values for DownloadItem
Explicitly list the possible string return values for the updated and done events so that the typescript declaration file can model them more accurately. At present they are represented as a string type. Fixes : https://github.com/electron/electron-typescript-definitions/issues/71
This commit is contained in:
parent
249bd41e11
commit
0ea296b1cb
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ win.webContents.session.on('will-download', (event, item, webContents) => {
|
|||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `state` String
|
||||
* `state` String - Can be `progressing` or `interrupted`.
|
||||
|
||||
Emitted when the download has been updated and is not done.
|
||||
|
||||
|
@ -58,7 +58,7 @@ The `state` can be one of following:
|
|||
Returns:
|
||||
|
||||
* `event` Event
|
||||
* `state` String
|
||||
* `state` String - Can be `completed`, `cancelled` or `interrupted`.
|
||||
|
||||
Emitted when the download is in a terminal state. This includes a completed
|
||||
download, a cancelled download (via `downloadItem.cancel()`), and interrupted
|
||||
|
|
Loading…
Add table
Reference in a new issue