| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /// <reference types="vite-plugin-electron/electron-env" />
- declare namespace NodeJS {
- interface ProcessEnv {
- /**
- * The built directory structure
- *
- * ```tree
- * ├─┬─┬ dist
- * │ │ └── index.html
- * │ │
- * │ ├─┬ dist-electron
- * │ │ ├── main.js
- * │ │ └── preload.js
- * │
- * ```
- */
- APP_ROOT: string
- /** /dist/ or /public/ */
- VITE_PUBLIC: string
- }
- }
- // Used in Renderer process, expose in `preload.ts`
- interface Window {
- ipcRenderer: import('electron').IpcRenderer
- electronAPI: {
- exit: () => void
- toggleFullScreen: (isFullScreen: boolean) => void
- toggleDevTools: () => void
- loadAppsJson: () => Promise<any>
- loadDefaultAppsJson: () => Promise<any>
- saveAppsJson: (appsJson: string) => void
- openWindow: (url: string) => void
- loadChildUrl: (url: string, aspectRatio: number) => void
- toggleChildSide: (isSideOen: boolean) => void
- showConfig: () => void
- showAbout: () => void
- }
- }
|