MCPcopy
hub / github.com/callstack/agent-device / parseBooleanLiteral

Function parseBooleanLiteral

src/utils/source-value.ts:111–116  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

109}
110
111export function parseBooleanLiteral(value: string): boolean | undefined {
112 const normalized = value.trim().toLowerCase();
113 if (BOOLEAN_TRUE_VALUES.has(normalized)) return true;
114 if (BOOLEAN_FALSE_VALUES.has(normalized)) return false;
115 return undefined;
116}
117
118function parseEnumSetValue(
119 definition: SourceValueDefinition,

Callers 4

createExecTraceContextFunction · 0.90
isIosRunnerDetachEnabledFunction · 0.90
parseSourceValueFunction · 0.85
parseBooleanValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected