Skip to content

Commit 67c7554

Browse files
trop[bot]codebytere
authored andcommitted
docs: add return type for subscribeNotification (electron#15501)
1 parent d158cce commit 67c7554

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/api/system-preferences.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ that contains the user information dictionary sent along with the notification.
6767
* `callback` Function
6868
* `event` String
6969
* `userInfo` Object
70+
71+
Returns `Number` - The ID of this subscription
7072

7173
Subscribes to native notifications of macOS, `callback` will be called with
7274
`callback(event, userInfo)` when the corresponding `event` happens. The
@@ -96,6 +98,8 @@ Removes the subscriber with `id`.
9698
* `callback` Function
9799
* `event` String
98100
* `userInfo` Object
101+
102+
Returns `Number` - The ID of this subscription
99103

100104
Same as `subscribeNotification`, but uses `NSNotificationCenter` for local defaults.
101105
This is necessary for events such as `NSUserDefaultsDidChangeNotification`.

0 commit comments

Comments
 (0)