Skip to content

Commit

Permalink
Add ImportMeta type definition (#7481)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen authored Dec 20, 2024
1 parent ea7e92d commit e065419
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e065419

Please sign in to comment.