mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #8287 from MSakamaki/github-electron-add-quitAndInstall
Add type definition for autoUpdater.quitAndInstall() to github-electron
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Vendored
+5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user