Add typings for vite import.meta.env

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-08-28 10:54:24 +02:00
parent 07b2447a07
commit d2b59e6444
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

11
js/env.d.ts vendored
View File

@ -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;
}