mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix parameter's type of Tray.setImage()
`Tray.setImage()` can take `string` parameter the same as constructor of `Tray`.
This commit is contained in:
parent
9c76211533
commit
978a94de72
@ -409,6 +409,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
@ -1212,7 +1212,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.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user