electron-vite-vue/types/global.d.ts

19 lines
394 B
TypeScript
Raw Normal View History

2021-06-23 10:58:52 +08:00
declare namespace NodeJS {
interface ProcessEnv {
2021-07-10 08:51:15 +08:00
readonly NODE_ENV: 'development' | 'production'
2021-11-09 08:57:17 +08:00
readonly HOST: string
2021-07-03 21:30:48 +08:00
readonly PORT: string
2021-11-09 08:57:17 +08:00
readonly PORT_WS: string
2021-06-23 10:58:52 +08:00
}
}
interface Window {
/** 关闭预加载动画 */
removeLoading: () => void
2021-09-09 10:17:30 +08:00
/** NodeJs fs */
fs: typeof import('fs')
/** Electron ipcRenderer */
ipcRenderer: import('electron').IpcRenderer
2021-06-23 10:58:52 +08:00
}