electron-ipc-module
    Preparing search index...

    Type Alias CloneableChannel<TDef, TArgs, TResult>

    CloneableChannel: IsCloneable<TArgs> extends true
        ? IsCloneable<TResult> extends true ? TDef : IpcUncloneable<TResult>
        : IpcUncloneable<TArgs>

    A channel definition, or an IpcUncloneable marker when its payload cannot cross IPC.

    The marker is not assignable to ChannelDef, so defineIpcModule rejects the channel where it is declared. Without this the mistake would only surface in the generated bridge, far from the handler that caused it.

    TResult is checked for handle/handleOnce only. A listen callback's return value is never sent back to the renderer, so it never gets cloned.

    Type Parameters

    • TDef
    • TArgs
    • TResult