Skip to content

Commit

Permalink
Fix TypeScript types (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegnuu authored Mar 13, 2021
1 parent 27a4322 commit 2bd888c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ declare namespace electronDl {
Each time a new download is started, the next callback will include it. The progress percentage could therefore become smaller again.
This callback provides the same data that is used for the progress bar on the app icon.
*/
readonly onTotalProgress?: (file: File) => void;
readonly onTotalProgress?: (progress: Progress) => void;

/**
Optional callback that receives the [download item](https://electronjs.org/docs/api/download-item) for which the download has been cancelled.
Expand All @@ -85,7 +85,7 @@ declare namespace electronDl {
/**
Optional callback that receives an object with information about an item that has been completed. It is called for each completed item.
*/
readonly onCompleted?: (completed: Completed) => void;
readonly onCompleted?: (file: File) => void;

/**
Reveal the downloaded file in the system file manager, and if possible, select the file.
Expand Down

0 comments on commit 2bd888c

Please sign in to comment.