(value: string | null)
| 31 | * usage rather than surfacing `NaN`. |
| 32 | */ |
| 33 | export function parseBillableUnits(value: string | null): number | undefined { |
| 34 | if (value == null || value === '') return undefined |
| 35 | const parsed = Number(value) |
| 36 | return Number.isFinite(parsed) ? parsed : undefined |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Record the billable units carried by a fal result response, keyed by the |
no outgoing calls
no test coverage detected