diff --git a/src/common/ipc.ts b/src/common/ipc.ts index 428a11c933..8dfb2c45b2 100644 --- a/src/common/ipc.ts +++ b/src/common/ipc.ts @@ -9,7 +9,7 @@ export type IpcChannel = string; export interface IpcChannelOptions { channel: IpcChannel; // main <-> renderer communication channel name - handle?: (...args: any[]) => void; // message handler + handle?: (...args: any[]) => Promise | any; // message handler autoBind?: boolean; // auto-bind message handler in main-process, default: true timeout?: number; // timeout for waiting response from the sender once?: boolean; // one-time event