refactor ipcEmit event
This commit is contained in:
parent
2c510765c0
commit
95e3dab1c2
6 changed files with 14 additions and 21 deletions
|
|
@ -70,7 +70,8 @@ interface IPCListeners {
|
|||
[listener: string]: IIpcListener<any> | null;
|
||||
}
|
||||
|
||||
interface IpcEmitPayload<T> {
|
||||
message: T | null;
|
||||
interface IpcRendererEvent<T> {
|
||||
channel: string;
|
||||
payload: T | null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue