Skip to content

Commit

Permalink
fix(node-config-provider): allow undefined for booleanSelector obj ke…
Browse files Browse the repository at this point in the history
…ys (#2945)
  • Loading branch information
trivikr committed Oct 28, 2021
1 parent 0142e6b commit 1bd56b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node-config-provider/src/booleanSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export enum SelectorType {
*
* @internal
*/
export const booleanSelector = (obj: { [key: string]: string }, key: string, type: SelectorType) => {
export const booleanSelector = (obj: { [key: string]: string | undefined }, key: string, type: SelectorType) => {
if (!(key in obj)) return undefined;
if (obj[key] === "true") return true;
if (obj[key] === "false") return false;
Expand Down

0 comments on commit 1bd56b6

Please sign in to comment.