1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 19:17:21 +08:00
This commit is contained in:
SevCrane
2024-06-05 23:20:28 +08:00
commit 5e482958f6
7329 changed files with 240086 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import {ipcRenderer} from 'electron';
import IpcRenderer = Electron.IpcRenderer;
export function ipcRendererSend(channel: string, ...args: any[]): void {
ipcRenderer.send(channel, ...args);
}
export function ipcRendererOn(
channel: string,
listener: (event: Electron.IpcRendererEvent, ...args: any[]) => void,
): IpcRenderer {
return ipcRenderer.on(channel, listener);
}