mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-06 04:05:44 +08:00
chore(types): add process.env.ELECTRON_RENDERER_URL type
This commit is contained in:
parent
d8307e8fd4
commit
6c590ad65b
10
node.d.ts
vendored
10
node.d.ts
vendored
@ -27,3 +27,13 @@ declare module '*.wasm?loader' {
|
|||||||
const loadWasm: (options?: WebAssembly.Imports) => Promise<WebAssembly.Instance>
|
const loadWasm: (options?: WebAssembly.Imports) => Promise<WebAssembly.Instance>
|
||||||
export default loadWasm
|
export default loadWasm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// build-in process env
|
||||||
|
declare namespace NodeJS {
|
||||||
|
interface ProcessEnv {
|
||||||
|
/**
|
||||||
|
* Vite's dev server address for Electron renderers.
|
||||||
|
*/
|
||||||
|
readonly ELECTRON_RENDERER_URL?: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user