MCPcopy Index your code
hub / github.com/simstudioai/sim / asRecord

Function asRecord

apps/sim/executor/handlers/pi/events.ts:74–76  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

72}
73
74function asRecord(value: unknown): Record<string, unknown> | null {
75 return typeof value === 'object' && value !== null ? (value as Record<string, unknown>) : null
76}
77
78function asString(value: unknown): string {
79 return typeof value === 'string' ? value : ''

Callers 2

extractUsageFunction · 0.70
normalizePiEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected