Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
78
function
asString(value: unknown): string {
79
return
typeof value ===
'string'
? value :
''
80
}
81
82
function
asNumber(value: unknown): number {
83
return
typeof value ===
'number'
&& Number.isFinite(value) ? value : 0
Callers
1
normalizePiEvent
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected