MCPcopy Index your code
hub / github.com/callstack/agent-device / readNullableString

Function readNullableString

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

Source from the content-addressed store, hash-verified

44}
45
46export function readNullableString(
47 record: Record<string, unknown>,
48 key: string,
49): string | null | undefined {
50 return readNullable(record, key, parseNonEmptyString);
51}
52
53export function readRequiredNumber(record: Record<string, unknown>, key: string): number {
54 return readRequired(

Callers 2

normalizeSessionFunction · 0.90
normalizeOpenDeviceFunction · 0.90

Calls 1

readNullableFunction · 0.85

Tested by

no test coverage detected