MCPcopy Index your code
hub / github.com/anomalyco/opencode / string

Function string

packages/console/function/src/log-processor.ts:183–188  ·  view source on GitHub ↗
(data: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

181}
182
183function string(data: Record<string, unknown>, key: string) {
184 const value = data[key]
185 if (typeof value === "string") return value
186 if (typeof value === "number" || typeof value === "boolean") return String(value)
187 return undefined
188}
189
190function boolean(data: Record<string, unknown>, key: string) {
191 const value = data[key]

Callers 1

toLakeEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected