Files
sionrui/frontend/app/web-gold/src/env.d.ts
2025-11-10 00:59:40 +08:00

30 lines
656 B
TypeScript

/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
interface ImportMetaEnv {
readonly VITE_DEV_TOKEN: string
readonly VITE_TENANT_ID: string
readonly VITE_PROXY_TARGET: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
// 声明 ant-design-vue 的类型
declare module 'ant-design-vue' {
export const message: {
success: (content: string) => void
error: (content: string) => void
warning: (content: string) => void
info: (content: string) => void
}
export const Modal: any
}