Skip to content

Commit 7fc87ce

Browse files
committed
fix(node-config-provider): allow undefined values for booleanSelector obj keys
1 parent 538d717 commit 7fc87ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node-config-provider/src/booleanSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export enum SelectorType {
1111
*
1212
* @internal
1313
*/
14-
export const booleanSelector = (obj: { [key: string]: string }, key: string, type: SelectorType) => {
14+
export const booleanSelector = (obj: { [key: string]: string | undefined }, key: string, type: SelectorType) => {
1515
if (!(key in obj)) return undefined;
1616
if (obj[key] === "true") return true;
1717
if (obj[key] === "false") return false;

0 commit comments

Comments
 (0)