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

Function asRecord

projects/runtime-node/src/process.ts:50–52  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

48}
49
50function asRecord(value: unknown): Record<string, unknown> {
51 return typeof value === "object" && value !== null ? (value as Record<string, unknown>) : {}
52}
53
54function requiredString(record: Record<string, unknown>, key: string): string {
55 const value = record[key]

Callers 4

optionalStringRecordFunction · 0.70
commandParamsFunction · 0.70
scriptParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected