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

Function readText

src/utils/install-source-config.ts:90–92  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

88}
89
90function readText(value: unknown): string | undefined {
91 return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;
92}
93
94function readRequiredText(value: unknown, field: string): string {
95 const text = readText(value);

Callers 1

readRequiredTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…