67 lines
1.6 KiB
TypeScript
Executable File
67 lines
1.6 KiB
TypeScript
Executable File
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_AMAP_KEY?: string
|
|
readonly VITE_AMAP_SECURITY_CODE?: string
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv
|
|
}
|
|
|
|
declare module 'nprogress'
|
|
|
|
declare module 'crypto-js'
|
|
|
|
declare module 'vue-img-cutter'
|
|
|
|
declare module 'file-saver'
|
|
|
|
declare module 'buffer'
|
|
|
|
declare module '@turbodocx/html-to-docx' {
|
|
const HTMLtoDOCX: (
|
|
htmlString: string,
|
|
headerHTMLString?: string | null,
|
|
documentOptions?: Record<string, unknown>,
|
|
footerHTMLString?: string | null
|
|
) => Promise<Blob | ArrayBuffer>
|
|
export default HTMLtoDOCX
|
|
}
|
|
|
|
declare module '@turbodocx/html-to-docx/dist/html-to-docx.browser.esm.js' {
|
|
const HTMLtoDOCX: (
|
|
htmlString: string,
|
|
headerHTMLString?: string | null,
|
|
documentOptions?: Record<string, unknown>,
|
|
footerHTMLString?: string | null
|
|
) => Promise<Blob | ArrayBuffer>
|
|
export default HTMLtoDOCX
|
|
}
|
|
|
|
declare module 'qrcode.vue' {
|
|
export type Level = 'L' | 'M' | 'Q' | 'H'
|
|
export type RenderAs = 'canvas' | 'svg'
|
|
export type GradientType = 'linear' | 'radial'
|
|
export interface ImageSettings {
|
|
src: string
|
|
height: number
|
|
width: number
|
|
excavate: boolean
|
|
}
|
|
export interface QRCodeProps {
|
|
value: string
|
|
size?: number
|
|
level?: Level
|
|
background?: string
|
|
foreground?: string
|
|
renderAs?: RenderAs
|
|
}
|
|
const QrcodeVue: any
|
|
export default QrcodeVue
|
|
}
|
|
|
|
// 全局变量声明
|
|
declare const __APP_VERSION__: string // 版本号
|
|
declare const __APP_BUILD_ID__: string // 构建指纹:短 git hash + 构建时间戳
|