Skip to main content

Type Alias: IpcBridgeMethod<TChannel>

IpcBridgeMethod<TChannel> = IpcInvokeChannelParams<TChannel> extends [] ? () => BridgeResult<TChannel> : (...args: IpcInvokeChannelParams<TChannel>) => BridgeResult<TChannel>

Defined in: shared/types/preload.ts:33

Function signature for invoking a typed IPC channel.

Type Parametersโ€‹

TChannelโ€‹

TChannel extends IpcInvokeChannel