mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
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
|
||||
|
||||
|
||||
5
github-electron/github-electron.d.ts
vendored
5
github-electron/github-electron.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user