Merge pull request #8287 from MSakamaki/github-electron-add-quitAndInstall

Add type definition for autoUpdater.quitAndInstall() to github-electron
This commit is contained in:
Masahiro Wakame
2016-02-29 23:07:05 +09:00
2 changed files with 9 additions and 0 deletions
@@ -227,6 +227,10 @@ app.commandLine.appendSwitch('vmodule', 'console=0');
autoUpdater.setFeedURL('http://mycompany.com/myapp/latest?version=' + app.getVersion());
autoUpdater.checkForUpdates();
autoUpdater.quitAndInstall();
// browser-window
// https://github.com/atom/electron/blob/master/docs/api/browser-window.md
+5
View File
@@ -1186,6 +1186,11 @@ declare module Electron {
* before using this API
*/
checkForUpdates(): any;
/**
* Restarts the app and installs the update after it has been downloaded.
* It should only be called after update-downloaded has been emitted.
*/
quitAndInstall(): void;
}
module Dialog {