chore: cleanup typings/internal-electron.d.ts (#25711)
This commit is contained in:
parent
17c7c5cfdd
commit
8df4faa8f0
6 changed files with 25 additions and 76 deletions
|
@ -4,7 +4,7 @@ const { ipc } = process._linkedBinding('electron_renderer_ipc');
|
|||
|
||||
const internal = true;
|
||||
|
||||
const ipcRendererInternal = new EventEmitter() as any as Electron.IpcRendererInternal;
|
||||
const ipcRendererInternal = new EventEmitter() as any as ElectronInternal.IpcRendererInternal;
|
||||
ipcRendererInternal.send = function (channel, ...args) {
|
||||
return ipc.send(internal, channel, args);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue