env.d.ts 764 B

12345678910111213141516171819202122232425262728
  1. /// <reference types="vite/client" />
  2. /// <reference types="vite-svg-loader" />
  3. declare module '*.vue' {
  4. import { DefineComponent } from 'vue'
  5. // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  6. const component: DefineComponent<{}, {}, any>
  7. export default component
  8. }
  9. interface ImportMetaEnv {
  10. /** 网站标题,应用名称 */
  11. readonly VITE_APP_TITLE: string
  12. /** 服务端口号 */
  13. readonly VITE_SERVER_PORT: string
  14. /** 后台接口地址 */
  15. readonly VITE_SERVER_BASEURL: string
  16. /** 上传图片地址 */
  17. readonly VITE_UPLOAD_BASEURL: string
  18. /** 是否清除console */
  19. readonly VITE_DELETE_CONSOLE: string
  20. // 更多环境变量...
  21. }
  22. interface ImportMeta {
  23. readonly env: ImportMetaEnv
  24. }