File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/cdkConstructs/src/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import {StandardStackProps} from "../apps/createApp"
55export function getConfigFromEnvVar (
66 varName : string ,
77 prefix : string = "CDK_CONFIG_" ,
8- defaultValue : string | undefined
8+ defaultValue : string | undefined = undefined
99) : string {
1010 const value = process . env [ prefix + varName ]
1111 if ( ! value ) {
@@ -20,7 +20,7 @@ export function getConfigFromEnvVar(
2020export function getBooleanConfigFromEnvVar (
2121 varName : string ,
2222 prefix : string = "CDK_CONFIG_" ,
23- defaultValue : string | undefined
23+ defaultValue : string | undefined = undefined
2424) : boolean {
2525 const value = getConfigFromEnvVar ( varName , prefix , defaultValue )
2626 return value . toLowerCase ( ) . trim ( ) === "true"
@@ -29,7 +29,7 @@ export function getBooleanConfigFromEnvVar(
2929export function getNumberConfigFromEnvVar (
3030 varName : string ,
3131 prefix : string = "CDK_CONFIG_" ,
32- defaultValue : string | undefined
32+ defaultValue : string | undefined = undefined
3333) : number {
3434 const value = getConfigFromEnvVar ( varName , prefix , defaultValue )
3535 return Number ( value )
You can’t perform that action at this time.
0 commit comments