mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
github-electron: Add app.dock.setIcon() API
https://github.com/atom/electron/blob/master/docs/api/app.md#appdockseticonimage-os-x
This commit is contained in:
@@ -169,6 +169,7 @@ app.dock.setMenu(dockMenu);
|
||||
app.dock.setBadge('foo');
|
||||
var id = app.dock.bounce('informational');
|
||||
app.dock.cancelBounce(id);
|
||||
app.dock.setIcon('/path/to/icon.png');
|
||||
|
||||
app.setUserTasks([
|
||||
<Electron.Task>{
|
||||
|
||||
Vendored
+6
@@ -1125,6 +1125,12 @@ declare module Electron {
|
||||
* Note: This API is only available on Mac.
|
||||
*/
|
||||
setMenu(menu: Menu): void;
|
||||
/**
|
||||
* Sets the image associated with this dock icon.
|
||||
*
|
||||
* Note: This API is only available on Mac.
|
||||
*/
|
||||
setIcon(icon: NativeImage | string): void;
|
||||
}
|
||||
|
||||
interface Task {
|
||||
|
||||
Reference in New Issue
Block a user