|
1 | | -// Type definitions for Electron 11.4.2 |
| 1 | +// Type definitions for Electron 11.4.3 |
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 |
@@ -1439,6 +1439,10 @@ By default this API will return `false`. |
1439 | 1439 | * removed item to a custom category earlier than that will result in the entire |
1440 | 1440 | * custom category being omitted from the Jump List. The list of removed items can |
1441 | 1441 | * be obtained using `app.getJumpListSettings()`. |
| 1442 | + * |
| 1443 | + * **Note:** The maximum length of a Jump List item's `description` property is 260 |
| 1444 | + * characters. Beyond this limit, the item will not be added to the Jump List, nor |
| 1445 | + * will it be displayed. |
1442 | 1446 | * |
1443 | 1447 | Here's a very simple example of creating a custom Jump List: |
1444 | 1448 | * |
@@ -5269,7 +5273,7 @@ Retrieves the product descriptions. |
5269 | 5273 | args?: string; |
5270 | 5274 | /** |
5271 | 5275 | * Description of the task (displayed in a tooltip). Should only be set if `type` |
5272 | | - * is `task`. |
| 5276 | + * is `task`. Maximum length 260 characters. |
5273 | 5277 | */ |
5274 | 5278 | description?: string; |
5275 | 5279 | /** |
@@ -7792,13 +7796,15 @@ Some popular `key` and `type`s are: |
7792 | 7796 | */ |
7793 | 7797 | subscribeNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number; |
7794 | 7798 | /** |
| 7799 | + * The ID of this subscription |
| 7800 | + * |
7795 | 7801 | * Same as `subscribeNotification`, but uses |
7796 | 7802 | * `NSWorkspace.sharedWorkspace.notificationCenter`. This is necessary for events |
7797 | 7803 | * such as `NSWorkspaceDidActivateApplicationNotification`. |
7798 | 7804 | * |
7799 | 7805 | * @platform darwin |
7800 | 7806 | */ |
7801 | | - subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): void; |
| 7807 | + subscribeWorkspaceNotification(event: string, callback: (event: string, userInfo: Record<string, unknown>, object: string) => void): number; |
7802 | 7808 | /** |
7803 | 7809 | * Same as `unsubscribeNotification`, but removes the subscriber from |
7804 | 7810 | * `NSNotificationCenter`. |
|
0 commit comments