MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / stringRecord

Function stringRecord

projects/openade-module/src/yjsProjection.ts:50–57  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

48}
49
50function stringRecord(value: unknown): Record<string, string> | undefined {
51 if (!isRecord(value)) return undefined
52 const result: Record<string, string> = {}
53 for (const [key, nested] of Object.entries(value)) {
54 if (typeof nested === "string" && nested.length > 0) result[key] = nested
55 }
56 return result
57}
58
59function queuedTurns(value: unknown): OpenADEQueuedTurn[] | undefined {
60 if (!Array.isArray(value)) return undefined

Callers 1

readTaskFunction · 0.85

Calls 2

entriesMethod · 0.80
isRecordFunction · 0.70

Tested by

no test coverage detected