30 lines
656 B
TypeScript
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
|
||
|
|
}
|
||
|
|
|