Add typings for vite import.meta.env
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
07b2447a07
commit
d2b59e6444
11
js/env.d.ts
vendored
11
js/env.d.ts
vendored
@ -1 +1,12 @@
|
||||
/// <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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user