refactor: add ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers (#17313)
This commit is contained in:
parent
df7dc9396e
commit
faabd0cc8b
5 changed files with 44 additions and 5 deletions
4
typings/internal-electron.d.ts
vendored
4
typings/internal-electron.d.ts
vendored
|
@ -55,6 +55,10 @@ declare namespace Electron {
|
|||
sendToAll(webContentsId: number, channel: string, ...args: any[]): void
|
||||
}
|
||||
|
||||
interface WebContentsInternal extends Electron.WebContents {
|
||||
_sendInternal(channel: string, ...args: any[]): void;
|
||||
}
|
||||
|
||||
const deprecate: ElectronInternal.DeprecationUtil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue