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

Function readOptionalString

src/commands/management/runtime/admin.ts:307–310  ·  view source on GitHub ↗
(record: Record<string, unknown>, field: string)

Source from the content-addressed store, hash-verified

305}
306
307function readOptionalString(record: Record<string, unknown>, field: string): string | undefined {
308 const value = record[field];
309 return typeof value === 'string' && value.length > 0 ? value : undefined;
310}
311
312function formatSource(source: BackendInstallSource): string {
313 if (source.kind === 'path') return source.path;

Callers 10

createAgentDeviceClientFunction · 0.90
normalizeSnapshotResultFunction · 0.90
normalizeLeaseFunction · 0.90
normalizeDeployResultFunction · 0.90
normalizeSessionFunction · 0.90
normalizeRuntimeHintsFunction · 0.90
normalizeOpenDeviceFunction · 0.90
normalizeStartupSampleFunction · 0.90
formatInstallResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected