Skip to content

Commit 667d1a1

Browse files
author
Yann Leflour
committed
Add vite env typings
1 parent 23ae7ed commit 667d1a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
/// <reference types="vite/client" />
2+
3+
interface ImportMetaEnv {
4+
readonly VITE_OPENAI_API_KEY: string;
5+
// more env variables...
6+
}
7+
8+
interface ImportMeta {
9+
readonly env: ImportMetaEnv;
10+
}

0 commit comments

Comments
 (0)