Add typings for vite import.meta.env
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
11
js/env.d.ts
vendored
11
js/env.d.ts
vendored
@@ -1 +1,12 @@
|
|||||||
/// <reference types="histoire/vue" />
|
/// <reference types="histoire/vue" />
|
||||||
|
|
||||||
|
/// <reference types="vite/client" />
|
||||||
|
|
||||||
|
interface ImportMetaEnv {
|
||||||
|
readonly VITE_SERVER_URL: string;
|
||||||
|
readonly VITE_HISTOIRE_ENV: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ImportMeta {
|
||||||
|
readonly env: ImportMetaEnv;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user