env.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 'buffer'
  14. declare module '@turbodocx/html-to-docx' {
  15. const HTMLtoDOCX: (
  16. htmlString: string,
  17. headerHTMLString?: string | null,
  18. documentOptions?: Record<string, unknown>,
  19. footerHTMLString?: string | null
  20. ) => Promise<Blob | ArrayBuffer>
  21. export default HTMLtoDOCX
  22. }
  23. declare module '@turbodocx/html-to-docx/dist/html-to-docx.browser.esm.js' {
  24. const HTMLtoDOCX: (
  25. htmlString: string,
  26. headerHTMLString?: string | null,
  27. documentOptions?: Record<string, unknown>,
  28. footerHTMLString?: string | null
  29. ) => Promise<Blob | ArrayBuffer>
  30. export default HTMLtoDOCX
  31. }
  32. declare module 'qrcode.vue' {
  33. export type Level = 'L' | 'M' | 'Q' | 'H'
  34. export type RenderAs = 'canvas' | 'svg'
  35. export type GradientType = 'linear' | 'radial'
  36. export interface ImageSettings {
  37. src: string
  38. height: number
  39. width: number
  40. excavate: boolean
  41. }
  42. export interface QRCodeProps {
  43. value: string
  44. size?: number
  45. level?: Level
  46. background?: string
  47. foreground?: string
  48. renderAs?: RenderAs
  49. }
  50. const QrcodeVue: any
  51. export default QrcodeVue
  52. }
  53. // 全局变量声明
  54. declare const __APP_VERSION__: string // 版本号