env.d.ts 888 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// <reference types="vite/client" />
  2. interface ImportMetaEnv {
  3. readonly VITE_AMAP_KEY?: string
  4. readonly VITE_AMAP_SECURITY_CODE?: string
  5. }
  6. interface ImportMeta {
  7. readonly env: ImportMetaEnv
  8. }
  9. declare module 'nprogress'
  10. declare module 'crypto-js'
  11. declare module 'vue-img-cutter'
  12. declare module 'file-saver'
  13. declare module 'qrcode.vue' {
  14. export type Level = 'L' | 'M' | 'Q' | 'H'
  15. export type RenderAs = 'canvas' | 'svg'
  16. export type GradientType = 'linear' | 'radial'
  17. export interface ImageSettings {
  18. src: string
  19. height: number
  20. width: number
  21. excavate: boolean
  22. }
  23. export interface QRCodeProps {
  24. value: string
  25. size?: number
  26. level?: Level
  27. background?: string
  28. foreground?: string
  29. renderAs?: RenderAs
  30. }
  31. const QrcodeVue: any
  32. export default QrcodeVue
  33. }
  34. // 全局变量声明
  35. declare const __APP_VERSION__: string // 版本号