refactor ipcEmit event

This commit is contained in:
riqo 2021-06-20 14:01:48 -05:00
commit 95e3dab1c2
6 changed files with 14 additions and 21 deletions

View file

@ -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;
}