vite-env.d.ts 461 B

123456789101112131415161718192021
  1. /// <reference types="vite/client" />
  2. /// <reference types="vite-svg-loader" />
  3. declare module 'views/index.vue'
  4. declare module '*.vue' {
  5. import { DefineComponent } from 'vue'
  6. const component: DefineComponent<{}, {}, any>
  7. export default component
  8. }
  9. // 环境变量 TypeScript的智能提示
  10. interface ImportMetaEnv {
  11. VITE_APP_TITLE: string
  12. VITE_APP_PORT: string
  13. VITE_APP_BASE_API: string
  14. }
  15. interface ImportMeta {
  16. readonly env: ImportMetaEnv
  17. }