Files
PolyHermes/frontend/src/vite-env.d.ts
T

24 lines
454 B
TypeScript
Raw Normal View History

2025-12-03 02:48:02 +08:00
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_URL?: string
readonly VITE_WS_URL?: string
readonly VITE_APP_VERSION?: string
readonly VITE_APP_GIT_TAG?: string
readonly VITE_APP_GITHUB_REPO_URL?: string
2025-12-03 02:48:02 +08:00
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
// 版本号全局变量类型定义
interface Window {
__VERSION__?: {
version: string
gitTag: string
githubRepoUrl: string
}
}