Refactor code and update environment type definitions.

- Consolidate type definitions in vite-env.d.ts
- Update TypeScript include paths
This commit is contained in:
yangdx
2025-03-07 08:17:25 +08:00
parent 5942d148f0
commit 7e088ca528
6 changed files with 33 additions and 30 deletions

View File

@@ -1,7 +0,0 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_PROXY: string
readonly VITE_API_ENDPOINTS: string
readonly VITE_BACKEND_URL: string
}

View File

@@ -1 +1,11 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_PROXY: string
readonly VITE_API_ENDPOINTS: string
readonly VITE_BACKEND_URL: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}