From b5297ea8e2380b9174c26d5a35b1a73c2c9566d0 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Thu, 28 Apr 2022 15:45:23 +0530 Subject: [PATCH] docs: fix return type of setJumpList() in electron.d.ts (#33910) Before: ```ts setJumpList(categories: (JumpListCategory[]) | (null)): void; ``` After: ```ts setJumpList(categories: (JumpListCategory[]) | (null)): ('ok' | 'error' | 'invalidSeparatorError' | 'fileTypeRegistrationError' | 'customCategoryAccessDeniedError'); ``` Fixes: https://github.com/electron/electron/issues/33909 Signed-off-by: Darshan Sen --- docs/api/app.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/app.md b/docs/api/app.md index 5970bf58e57c..2aec42c48ae9 100755 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -864,6 +864,8 @@ Returns `Object`: * `categories` [JumpListCategory[]](structures/jump-list-category.md) | `null` - Array of `JumpListCategory` objects. +Returns `string` + Sets or removes a custom Jump List for the application, and returns one of the following strings: