Merge pull request #25472 from tklever/config-sources-env-option-update

feat: update ConfigSources options to match process.env typings
This commit is contained in:
Patrik Oldsberg
2024-07-26 10:43:21 +02:00
committed by GitHub
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/config-loader': patch
---
The `env` option of `ConfigSources.default` now correctly allows undefined members.
+1 -1
View File
@@ -88,7 +88,7 @@ export interface ConfigSourcesDefaultOptions extends BaseConfigSourcesOptions {
// (undocumented)
argv?: string[];
// (undocumented)
env?: Record<string, string>;
env?: Record<string, string | undefined>;
}
// @public
@@ -107,7 +107,7 @@ export interface ConfigSourcesDefaultForTargetsOptions
*/
export interface ConfigSourcesDefaultOptions extends BaseConfigSourcesOptions {
argv?: string[];
env?: Record<string, string>;
env?: Record<string, string | undefined>;
}
/**