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 <raisinten@gmail.com>
This commit is contained in:
Darshan Sen 2022-04-28 15:45:23 +05:30 committed by GitHub
parent 15c931201a
commit b5297ea8e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -864,6 +864,8 @@ Returns `Object`:
* `categories` [JumpListCategory[]](structures/jump-list-category.md) | `null` - Array of `JumpListCategory` objects. * `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 Sets or removes a custom Jump List for the application, and returns one of the
following strings: following strings: