new client electron
This commit is contained in:
parent
3698e6e3c0
commit
4e6e616015
26 changed files with 12537 additions and 0 deletions
27
client-electron/electron/electron-env.d.ts
vendored
Normal file
27
client-electron/electron/electron-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/// <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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue