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

Function asString

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

Source from the content-addressed store, hash-verified

76}
77
78function asString(value: unknown): string {
79 return typeof value === 'string' ? value : ''
80}
81
82function asNumber(value: unknown): number {
83 return typeof value === 'number' && Number.isFinite(value) ? value : 0

Callers 1

normalizePiEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected