From fe361a95d098c8df7dc33f3dbc21acb74ed0647b Mon Sep 17 00:00:00 2001 From: Cezar Augusto Date: Mon, 18 Nov 2024 18:34:32 -0300 Subject: [PATCH] Update user-facing types for env vars --- programs/cli/types/index.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/programs/cli/types/index.d.ts b/programs/cli/types/index.d.ts index 9e59fbef..b928f4bd 100644 --- a/programs/cli/types/index.d.ts +++ b/programs/cli/types/index.d.ts @@ -7,6 +7,16 @@ declare namespace NodeJS { interface ProcessEnv { - readonly EXTENSION_ENV: 'development' | 'production' | 'test' | 'debug' + readonly EXTENSION_BROWSER: 'chrome' | 'edge' | 'firefox' | 'chromium-based' | 'gecko-based' + readonly EXTENSION_MODE: 'development' | 'production' } } + +interface ImportMetaEnv { + readonly EXTENSION_BROWSER: NodeJS.ProcessEnv['EXTENSION_BROWSER'] + readonly EXTENSION_MODE: NodeJS.ProcessEnv['EXTENSION_MODE'] +} + +interface ImportMeta { + readonly env: ImportMetaEnv +}