UNPKG

@el3um4s/ipc-for-electron

Version:

A package to simplify the communication between renderer and node js in Electron applications

11 lines (10 loc) 426 B
import { BrowserWindow, BrowserView, IpcMain } from "electron"; import { APIChannels, SendChannels } from "./channelsInterface"; export default class IPC { nameAPI: string; validSendChannel: SendChannels; validReceiveChannel: string[]; constructor(channels: APIChannels); get channels(): APIChannels; initIpcMain(ipcMain: IpcMain, customWindow: BrowserWindow | BrowserView): Promise<void>; }