IPC Event
type is no longer compatible with Electron.IpcMainEvent
#7575
Labels
Event
type is no longer compatible with Electron.IpcMainEvent
#7575
Problem
Recently Electron changed it's
IpcMainEvent
definition: electron/electron#44651Now,
Electron.IpcMainEvent
does not satisfyEvent
type used byIpcListener
. As a result,IpcListener
passed toIpcSocket.addListener
can't be passed further toElectron.IpcMain.addListener
and requires casting toany
. This also affectsIpcSocketBackend.handle
.As far as I can tell, this does not break any functionality, but it means our
IpcListener
type is incorrect.Possible solution
Add new
IpcEvent
type to replaceEvent
inIpcListener
(breaking change).The text was updated successfully, but these errors were encountered: