From d2b59e6444b88d4c8e2437d8227fe863b129746c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 28 Aug 2022 10:54:24 +0200 Subject: [PATCH] Add typings for vite import.meta.env Signed-off-by: Thomas Citharel --- js/env.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/env.d.ts b/js/env.d.ts index e0d36b6a0..f284c30a9 100644 --- a/js/env.d.ts +++ b/js/env.d.ts @@ -1 +1,12 @@ /// + +/// + +interface ImportMetaEnv { + readonly VITE_SERVER_URL: string; + readonly VITE_HISTOIRE_ENV: string; +} + +interface ImportMeta { + readonly env: ImportMetaEnv; +}