Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ str
Function
str
packages/opencode/src/session/retry.ts:154–157 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
152
}
153
154
function
str(value: unknown) {
155
if
(value === undefined || value === null)
return
""
156
return
String(value)
157
}
158
159
function
num(value: unknown) {
160
const
parsed = Number.parseFloat(str(value))
Callers
2
retryable
Function · 0.85
num
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected