electron 10.4.1 → 10.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/electron.d.ts +4 -2
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 10.4.1
1
+ // Type definitions for Electron 10.4.5
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -7481,13 +7481,15 @@ Some popular `key` and `type`s are:
7481
7481
  */
7482
7482
  subscribeNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number;
7483
7483
  /**
7484
+ * The ID of this subscription
7485
+ *
7484
7486
  * Same as `subscribeNotification`, but uses
7485
7487
  * `NSWorkspace.sharedWorkspace.notificationCenter`. This is necessary for events
7486
7488
  * such as `NSWorkspaceDidActivateApplicationNotification`.
7487
7489
  *
7488
7490
  * @platform darwin
7489
7491
  */
7490
- subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): void;
7492
+ subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number;
7491
7493
  /**
7492
7494
  * Same as `unsubscribeNotification`, but removes the subscriber from
7493
7495
  * `NSNotificationCenter`.
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "10.4.1",
19
+ "version": "10.4.5",
20
20
  "repository": "https://github.com/electron/electron",
21
21
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
22
22
  "license": "MIT",