1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: fix type ipc#handle

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2020-08-17 21:27:56 +03:00
parent 1c83fff4db
commit 5c779007de

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