MCPcopy Create free account
hub / github.com/HKUDS/AgentSpace / readString

Function readString

scripts/feishu/smoke.ts:2229–2231  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

2227}
2228
2229function readString(value: unknown): string | undefined {
2230 return typeof value === "string" && value.trim() ? value.trim() : undefined;
2231}
2232
2233function readRecord(value: unknown): Record<string, unknown> | undefined {
2234 return value && typeof value === "object" && !Array.isArray(value)

Calls

no outgoing calls

Tested by

no test coverage detected