update types

This commit is contained in:
草鞋没号
2022-09-14 08:22:17 +08:00
parent de234a1fd5
commit 4b46601879
2 changed files with 25 additions and 4 deletions

24
electron/electron-env.d.ts vendored Normal file
View File

@@ -0,0 +1,24 @@
/// <reference types="vite-plugin-electron/electron-env" />
declare namespace NodeJS {
interface ProcessEnv {
/**
* The built directory structure
*
* ```tree
* ├─┬ dist
* │ ├─┬ electron
* │ │ ├─┬ main
* │ │ │ └── index.js
* │ │ └─┬ preload
* │ │ └── index.js
* │ ├── index.html
* │ ├── ...other-static-files-from-public
* │
* ```
*/
DIST: string
/** /dist/ or /public/ */
PUBLIC: string
}
}