chore: remove unused and broken ipcRendererInternal.sendTo() (#29743)

This commit is contained in:
Milan Burda 2021-06-18 06:26:18 +02:00 committed by GitHub
commit de6696ef1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 25 deletions

View file

@ -229,11 +229,10 @@ declare namespace ElectronInternal {
appIcon: Electron.NativeImage | null;
}
interface IpcRendererInternal extends Electron.IpcRenderer {
interface IpcRendererInternal extends NodeJS.EventEmitter, Pick<Electron.IpcRenderer, 'send' | 'sendSync' | 'invoke'> {
invoke<T>(channel: string, ...args: any[]): Promise<T>;
}
// Internal IPC has _replyInternal and NO reply method
interface IpcMainInternalEvent extends Omit<Electron.IpcMainEvent, 'reply'> {
}