env.d.ts 578 B

12345678910111213141516171819202122
  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. readonly VITE_APP_TITLE: string
  11. readonly VITE_SERVER_PORT: string
  12. readonly VITE_SERVER_BASEURL: string
  13. readonly VITE_DELETE_CONSOLE: string
  14. // 更多环境变量...
  15. }
  16. interface ImportMeta {
  17. readonly env: ImportMetaEnv
  18. }