You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The click handler is typed as Function inside the electron.d.ts. And the documentation is wrong around the browserWindow property being BrowserWindow. It can be undefined on macOS when no window is opened.
The text was updated successfully, but these errors were encountered:
Referring to https://www.electronjs.org/docs/api/menu-item#new-menuitemoptions
The
click
handler is typed asFunction
inside theelectron.d.ts
. And the documentation is wrong around thebrowserWindow
property beingBrowserWindow
. It can beundefined
on macOS when no window is opened.The text was updated successfully, but these errors were encountered: