Files
test/packages/core/env.d.ts
2026-04-08 21:26:18 +08:00

23 lines
465 B
TypeScript

/// <reference types="vite/client" />
/// <reference types="element-plus/global" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<object, object, any>
export default component
}
interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string
// 更多环境变量可以在这里添加...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
interface Window {
// 可以扩展 window 类型
}