Files
Jammy 52636c91ae
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled
Track bundled vendor runtime sources
2026-07-07 10:05:50 +08:00

12 lines
341 B
TypeScript

import { ipcRenderer } from "electron";
const dispatch = async (workflowLogId: string, params: any) => {
return ipcRenderer.invoke("workflow:dispatch", workflowLogId, params);
};
const cancel = async (workflowLogId: string) => {
return ipcRenderer.invoke("workflow:cancel", workflowLogId);
};
export default { dispatch, cancel };