chore: fix type ipc#handle

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-08-17 21:28:48 +03:00
1 parent 1c83fff4db
commit 5c779007de
1 file changed
+1 -1
+1 -1
View File
@@ -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> | 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