env.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /// <reference types="vite/client" />
  2. declare module '*.vue' {
  3. import { DefineComponent } from 'vue'
  4. // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  5. const component: DefineComponent<{}, {}, any>
  6. export default component
  7. }
  8. interface ImportMetaEnv {
  9. readonly VITE_APP_TITLE: string
  10. readonly VITE_PORT: number
  11. readonly VITE_OPEN: string
  12. readonly VITE_DEV: string
  13. readonly VITE_APP_CAPTCHA_ENABLE: string
  14. readonly VITE_APP_TENANT_ENABLE: string
  15. readonly VITE_APP_DEFAULT_LOGIN_TENANT: string
  16. readonly VITE_APP_DEFAULT_LOGIN_USERNAME: string
  17. readonly VITE_APP_DEFAULT_LOGIN_PASSWORD: string
  18. readonly VITE_APP_DOCALERT_ENABLE: string
  19. readonly VITE_BASE_URL: string
  20. readonly VITE_API_URL: string
  21. readonly VITE_BASE_PATH: string
  22. readonly VITE_DROP_DEBUGGER: string
  23. readonly VITE_DROP_CONSOLE: string
  24. readonly VITE_SOURCEMAP: string
  25. readonly VITE_OUT_DIR: string
  26. }
  27. declare global {
  28. interface ImportMeta {
  29. readonly env: ImportMetaEnv
  30. }
  31. }