electron-ipc-module
    Preparing search index...

    Interface IpcEmitter<TEvents>

    Strongly-typed main-process sender for independently produced renderer events.

    interface IpcEmitter<TEvents extends IpcEventMap> {
        emit<TEvent extends string>(
            event: TEvent,
            ...args: IpcEventArgs<TEvents, TEvent>,
        ): void;
        emitTo<TEvent extends string>(
            target: WebContents,
            event: TEvent,
            ...args: IpcEventArgs<TEvents, TEvent>,
        ): void;
    }

    Type Parameters

    Index