mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-02-26 04:40: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",
|
"moduleResolution": "Node",
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true
|
||||||
"types": [
|
|
||||||
"vite-plugin-electron/electron-env"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": ["package.json", "electron"]
|
"include": ["package.json", "electron"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user