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

Function trimRuntimeValue

src/utils/runtime-transport.ts:45–48  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

43}
44
45export function trimRuntimeValue(value: string | undefined): string | undefined {
46 const trimmed = value?.trim();
47 return trimmed && trimmed.length > 0 ? trimmed : undefined;
48}
49
50function normalizePort(value: number | undefined): number | undefined {
51 if (!Number.isInteger(value)) return undefined;

Callers 3

buildRuntimeHintsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected