Taobin-Recipe-Manager/client-electron/electron/electron-env.d.ts

29 lines
654 B
TypeScript
Raw Normal View History

/* eslint-disable @typescript-eslint/consistent-type-imports */
2024-01-11 15:40:18 +07:00
/// <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
*
* ```
*/
DIST: string
/** /dist/ or /public/ */
VITE_PUBLIC: string
}
}
// Used in Renderer process, expose in `preload.ts`
interface Window {
ipcRenderer: import('electron').IpcRenderer
}