From 5c779007dec73a5f8abc81d68da28e91cc6f9578 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 17 Aug 2020 21:27:56 +0300 Subject: [PATCH] chore: fix type ipc#handle Signed-off-by: Roman --- src/common/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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