Files
TrueGrowth/vendor/aigcpanel/electron/mapi/file/render.ts
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

22 lines
493 B
TypeScript

import fileIndex from "./index";
import { ipcRenderer } from "electron";
const openFile = async (options: {} = {}) => {
return ipcRenderer.invoke("file:openFile", options);
};
const openDirectory = async (options: {} = {}) => {
return ipcRenderer.invoke("file:openDirectory", options);
};
const openSave = async (options: {} = {}) => {
return ipcRenderer.invoke("file:openSave", options);
};
export default {
...fileIndex,
openFile,
openDirectory,
openSave,
};