env.d.ts 834 B

123456789101112131415161718192021222324252627282930
  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: boolean
  12. readonly VITE_APP_TENANT_ENABLE: boolean
  13. readonly VITE_BASE_URL: string
  14. readonly VITE_UPLOAD_URL: string
  15. readonly VITE_API_BASEPATH: string
  16. readonly VITE_API_URL: string
  17. readonly VITE_BASE_PATH: string
  18. readonly VITE_DROP_DEBUGGER: string
  19. readonly VITE_DROP_CONSOLE: string
  20. readonly VITE_SOURCEMAP: string
  21. readonly VITE_OUT_DIR: string
  22. }
  23. declare global {
  24. interface ImportMeta {
  25. readonly env: ImportMetaEnv
  26. }
  27. }