env.d.ts 716 B

12345678910111213141516171819202122232425262728
  1. /// <reference types="vite/client" />
  2. declare module '*.vue' {
  3. import { DefineComponent } from 'vue'
  4. interface ImportMetaEnv {
  5. // 基础配置
  6. readonly VITE_APP_NAME: string
  7. readonly UNI_PLATFORM: string
  8. // API 配置
  9. readonly VITE_API_BASE: string
  10. readonly VITE_API_TIMEOUT: string
  11. // 调试配置
  12. readonly VITE_DEBUG_MODE: string
  13. readonly UNI_OUTPUT_DIR: string
  14. // 系统环境
  15. readonly MODE: "development" | "production"
  16. }
  17. interface ImportMeta {
  18. readonly env : ImportMetaEnv
  19. }
  20. // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  21. const component : DefineComponent<{}, {}, any>
  22. export default component
  23. }