MCPcopy Create free account
hub / github.com/callstack/agent-device / readOptionalText

Function readOptionalText

src/daemon/upload-http.ts:272–275  ·  view source on GitHub ↗
(record: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

270}
271
272function readOptionalText(record: Record<string, unknown>, key: string): string | undefined {
273 const value = record[key];
274 return typeof value === 'string' ? value : undefined;
275}
276
277function readRequiredInteger(record: Record<string, unknown>, key: string): number {
278 const value = record[key];

Callers 2

readUploadPreflightBodyFunction · 0.85
readRequiredTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…