Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3503075
D6321.id21578.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6321.id21578.diff
View Options
diff --git a/desktop/flow-typed/npm/electron_v22.0.0.js b/desktop/flow-typed/npm/electron_v22.0.0.js
--- a/desktop/flow-typed/npm/electron_v22.0.0.js
+++ b/desktop/flow-typed/npm/electron_v22.0.0.js
@@ -10,6 +10,7 @@
hide(): void,
show(): void,
setName: (name: string) => void,
+ getVersion: () => string,
dock: Dock,
isPackaged: boolean,
name: string,
@@ -161,6 +162,40 @@
exposeInMainWorld(apiKey: string, api: mixed): void,
};
+ declare export var autoUpdater: AutoUpdater;
+ declare type AutoUpdater = {
+ setFeedURL(options: {
+ +url: string,
+ +headers?: { +[string]: string },
+ +serverType?: 'json' | 'default',
+ }): void,
+ getFeedURL(): string,
+ checkForUpdates(): void,
+ quitAndInstall(): void,
+
+ on<T: $Keys<AutoUpdaterEvents>>(
+ event: T,
+ listener: $ElementType<AutoUpdaterEvents, T>,
+ ): void,
+ removeListener<T: $Keys<AutoUpdaterEvents>>(
+ event: T,
+ listener: $ElementType<AutoUpdaterEvents, T>,
+ ): void,
+ };
+
+ declare type AutoUpdaterEvents = {
+ 'checking-for-update': () => void,
+ 'update-available': () => void,
+ 'update-not-available': () => void,
+ 'update-downloaded': (
+ event: Event,
+ releaseNotes?: string,
+ releaseName: string,
+ releaseDate?: Date,
+ updateURL?: string,
+ ) => void,
+ };
+
declare class Dock {
setBadge(text: string): void;
getBadge(): string;
@@ -182,7 +217,7 @@
declare export type IpcMainEvent = {
+processId: number,
+frameId: number,
- +returnValue: mixed,
+ returnValue: mixed,
+sender: WebContents,
+reply: (channel: string, ...args: $ReadOnlyArray<any>) => void,
};
@@ -198,6 +233,7 @@
listener: (...args: $ReadOnlyArray<any>) => void,
): void,
send(channel: string, ...args: $ReadOnlyArray<mixed>): void,
+ sendSync(channel: string, ...args: $ReadOnlyArray<mixed>): any,
};
declare export type MenuItemConstructorOptions = {
@@ -365,6 +401,7 @@
Menu,
ipcMain,
systemPreferences,
+ autoUpdater,
} from 'electron';
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 5:15 AM (17 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2686170
Default Alt Text
D6321.id21578.diff (2 KB)
Attached To
Mode
D6321: [desktop] Add additional types for electron auto updating
Attached
Detach File
Event Timeline
Log In to Comment