MCPcopy Index your code
hub / github.com/simstudioai/sim / jobCostTotal

Function jobCostTotal

apps/sim/lib/logs/fetch-log-detail.ts:69–73  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

67}
68
69export function jobCostTotal(raw: unknown): { total: number } | null {
70 const total = (raw as { total?: unknown } | null | undefined)?.total
71 const n = total == null ? Number.NaN : Number(total)
72 return Number.isFinite(n) ? { total: n } : null
73}
74
75interface FetchLogDetailArgs {
76 userId: string

Callers 2

listLogsFunction · 0.90
fetchLogDetailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected