mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
16 lines
325 B
TypeScript
16 lines
325 B
TypeScript
import { ipcRenderer } from 'electron';
|
|
|
|
const removeAllListeners = (channel: string) => {
|
|
ipcRenderer.removeAllListeners(channel);
|
|
};
|
|
|
|
const send = (channel: string, ...args: any[]) => {
|
|
ipcRenderer.send(channel, ...args);
|
|
};
|
|
|
|
export const ipc = {
|
|
removeAllListeners,
|
|
send,
|
|
};
|
|
|
|
export type Ipc = typeof ipc;
|