mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #5727 from rhysd/patch-2
Fixed parameter's type of Tray.setImage()
This commit is contained in:
@@ -411,6 +411,7 @@ app.on('ready', () => {
|
||||
]);
|
||||
appIcon.setToolTip('This is my application.');
|
||||
appIcon.setContextMenu(contextMenu);
|
||||
appIcon.setImage('/path/to/new/icon');
|
||||
});
|
||||
|
||||
// clipboard
|
||||
|
||||
Vendored
+1
-1
@@ -1218,7 +1218,7 @@ declare module GitHubElectron {
|
||||
/**
|
||||
* Sets the image associated with this tray icon.
|
||||
*/
|
||||
setImage(image: NativeImage): void;
|
||||
setImage(image: NativeImage|string): void;
|
||||
/**
|
||||
* Sets the image associated with this tray icon when pressed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user