mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +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
|
||||
|
||||
2
github-electron/github-electron.d.ts
vendored
2
github-electron/github-electron.d.ts
vendored
@@ -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