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

Function readOptionalString

src/utils/parsing.ts:39–44  ·  view source on GitHub ↗
(
  record: Record<string, unknown>,
  key: string,
)

Source from the content-addressed store, hash-verified

37}
38
39export function readOptionalString(
40 record: Record<string, unknown>,
41 key: string,
42): string | undefined {
43 return readOptional(record, key, parseNonEmptyString);
44}
45
46export function readNullableString(
47 record: Record<string, unknown>,

Callers

nothing calls this directly

Calls 1

readOptionalFunction · 0.85

Tested by

no test coverage detected