electron-ipc-module
GitHub
Preparing search index...
index
IpcHandler
Type Alias IpcHandler<TArgs, TResult, TEmit>
IpcHandler
:
(
e
:
TypedIpcMainInvokeEvent
<
TEmit
>
,
...
args
:
TArgs
,
)
=>
MaybePromise
<
TResult
>
Callback for a
handle
/
handleOnce
channel — returns a value to the caller.
Type Parameters
TArgs
extends
any
[]
=
any
[]
TResult
=
any
TEmit
extends
IpcEventMap
=
AnyIpcEventMap
Type Declaration
(
e
:
TypedIpcMainInvokeEvent
<
TEmit
>
,
...
args
:
TArgs
)
:
MaybePromise
<
TResult
>
Parameters
e
:
TypedIpcMainInvokeEvent
<
TEmit
>
...
args
:
TArgs
Returns
MaybePromise
<
TResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
electron-ipc-module
Loading...
Callback for a
handle/handleOncechannel — returns a value to the caller.