Skip to main content

Function: createVoidInvoker()

createVoidInvoker<TChannel>(channel: TChannel, options?: IpcInvokeOptions): (...args: IpcInvokeChannelParams<TChannel>) => Promise<void>

Defined in: electron/preload/core/bridgeFactory.ts:637

Creates a typed IPC invoker that returns void

Type Parameters

TChannel

TChannel extends VoidIpcInvokeChannel

Parameters

channel

TChannel

The IPC channel name

options?

IpcInvokeOptions

Returns

A function that safely invokes the IPC channel and validates void response

(...args: IpcInvokeChannelParams<TChannel>): Promise<void>

Parameters

args

...IpcInvokeChannelParams<TChannel>

Returns

Promise<void>