docs: systemPreferences.subscribeWorkspaceNotification return type (#28588)

This commit is contained in:
Samuel Maddock 2021-04-11 17:02:58 -04:00 committed by GitHub
parent f755c521eb
commit ef4954fa1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,8 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
* `userInfo` Record<String, unknown>
* `object` String
Returns `Number` - The ID of this subscription
Same as `subscribeNotification`, but uses `NSWorkspace.sharedWorkspace.notificationCenter`.
This is necessary for events such as `NSWorkspaceDidActivateApplicationNotification`.