env.d.ts 693 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * @Author: wyd
  3. * @Date: 2024-03
  4. * @LastEditors: wyd
  5. * @LastEditTime: 2024-03
  6. * @Description:
  7. */
  8. /// <reference types="vite/client" />
  9. declare module '*.vue' {
  10. import { DefineComponent } from 'vue'
  11. // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  12. const component: DefineComponent<{}, {}, any>
  13. export default component
  14. }
  15. interface ImportMetaEnv {
  16. /* API基本路径 */
  17. readonly VITE_BASE_URL: string
  18. /* 文件路径前缀 */
  19. readonly VITE_OSS_URL: string
  20. /* 文件桶 */
  21. readonly VITE_BARREL_URL: string
  22. /* websocket地址 */
  23. readonly VITE_SOCKET_URL: string
  24. }
  25. interface ImportMeta {
  26. readonly env: ImportMetaEnv
  27. }