Add ImportMeta type definition (#7481)

pull/7486/head
ZhaoJiSen 2024-12-20 15:32:58 +08:00 committed by GitHub
parent ea7e92db84
commit e06541984f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -1,2 +1,11 @@
/// <reference types="vite/client" />
/// <reference types="vite-svg-loader" />
interface ImportMetaEnv {
readonly VITE_API_URL: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}