MCPcopy 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
154function str(value: unknown) {
155 if (value === undefined || value === null) return ""
156 return String(value)
157}
158
159function num(value: unknown) {
160 const parsed = Number.parseFloat(str(value))

Callers 2

retryableFunction · 0.85
numFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected