(value: string)
| 69 | } |
| 70 | |
| 71 | export function parsePort(value: string): number | null { |
| 72 | const parsed = Number.parseInt(value, 10); |
| 73 | return Number.isFinite(parsed) && parsed >= 0 ? parsed : null; |
| 74 | } |
| 75 | |
| 76 | export function parseOptionalSeconds(value: string | null | undefined): number | null { |
| 77 | const parsed = Number.parseFloat(String(value ?? '').trim()); |
no outgoing calls
no test coverage detected