env.d.ts 633 B

12345678910111213141516171819202122232425
  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_API_BASE_PATH: string
  11. readonly VITE_BASE_PATH: string
  12. readonly VITE_DROP_DEBUGGER: string
  13. readonly VITE_DROP_CONSOLE: string
  14. readonly VITE_SOURCEMAP: string
  15. readonly VITE_OUT_DIR: string
  16. }
  17. declare global {
  18. interface ImportMeta {
  19. readonly env: ImportMetaEnv
  20. }
  21. }