mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
the click callback accepts an event as its third param
See https://github.com/electron/electron/blob/6d45052eeaf57faf239523b1b328cf37281ae030/lib/browser/api/menu-item.js#L52
This commit is contained in:
Vendored
+1
-1
@@ -2492,7 +2492,7 @@ declare namespace Electron {
|
||||
/**
|
||||
* Callback when the menu item is clicked.
|
||||
*/
|
||||
click?: (menuItem: MenuItem, browserWindow: BrowserWindow) => void;
|
||||
click?: (menuItem: MenuItem, browserWindow: BrowserWindow, event: Event) => void;
|
||||
/**
|
||||
* Can be normal, separator, submenu, checkbox or radio.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user