(raw: unknown)
| 67 | } |
| 68 | |
| 69 | export 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 | |
| 75 | interface FetchLogDetailArgs { |
| 76 | userId: string |
no outgoing calls
no test coverage detected