Initial clean project import
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { ipcRenderer } from "electron";
|
||||
|
||||
const init = () => {};
|
||||
|
||||
const send = (name: string, type: string, data: any = {}) => {
|
||||
return ipcRenderer.invoke("event:send", name, type, data).then();
|
||||
};
|
||||
|
||||
const callPage = async (name: string, type: string, data: any, option: any) => {
|
||||
return ipcRenderer.invoke("event:callPage", name, type, data, option);
|
||||
};
|
||||
|
||||
const channelSend = async (channel: string, data: any) => {
|
||||
return ipcRenderer.invoke("event:channelSend", channel, data);
|
||||
};
|
||||
|
||||
export default {
|
||||
init,
|
||||
send,
|
||||
callPage,
|
||||
channelSend,
|
||||
};
|
||||
Reference in New Issue
Block a user