Skip to content

Commit

Permalink
Update user-facing types for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Nov 22, 2024
1 parent fd1e70f commit fe361a9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion programs/cli/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit fe361a9

Please sign in to comment.