Add type definition for autoUpdater.quitAndInstall() to github-electron

This commit is contained in:
m.sakamaki
2016-02-27 15:18:53 +09:00
parent 163a427719
commit 9cee9901e4
2 changed files with 9 additions and 0 deletions

View File

@@ -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

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(): any;
}
module Dialog {