Skip to main content

Type Alias: IpcBridgeMethod<TChannel>

type IpcBridgeMethod<TChannel> = (
...args: IpcInvokeChannelParams<TChannel>
) => BridgeResult<TChannel>;

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

Function signature for invoking a typed IPC channel.

Type Parametersโ€‹

TChannelโ€‹

TChannel extends IpcInvokeChannel

Parametersโ€‹

argsโ€‹

...IpcInvokeChannelParams<TChannel>

Returnsโ€‹

BridgeResult<TChannel>

Remarksโ€‹

Uses a rest tuple for parameters (including the empty tuple []) instead of conditional typing. This keeps the signature precise while avoiding conditional-type instantiation edge cases that can confuse tooling.