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

Function integer

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

Source from the content-addressed store, hash-verified

195}
196
197function integer(data: Record<string, unknown>, key: string) {
198 const value = number(data, key)
199 if (value === undefined) return undefined
200 return Math.round(value)
201}
202
203function number(data: Record<string, unknown>, key: string) {
204 const value = data[key]

Callers 9

toLakeEventFunction · 0.70
workspace.sql.tsFile · 0.50
schema.sql.tsFile · 0.50
sql.tsFile · 0.50
sql.tsFile · 0.50
sql.tsFile · 0.50
sql.tsFile · 0.50
sql.tsFile · 0.50

Calls 1

numberFunction · 0.70

Tested by

no test coverage detected