mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-25 20:30:10 +08:00
update types
This commit is contained in:
parent
de234a1fd5
commit
4b46601879
24
electron/electron-env.d.ts
vendored
Normal file
24
electron/electron-env.d.ts
vendored
Normal 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
|
||||
}
|
||||
}
|
@ -6,10 +6,7 @@
|
||||
"moduleResolution": "Node",
|
||||
"jsx": "preserve",
|
||||
"resolveJsonModule": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"types": [
|
||||
"vite-plugin-electron/electron-env"
|
||||
]
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"include": ["package.json", "electron"]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user