(value: string | undefined)
| 147 | } |
| 148 | |
| 149 | function toOptionalInteger(value: string | undefined): number | undefined { |
| 150 | if (!value) return undefined; |
| 151 | const parsed = Number.parseInt(value, 10); |
| 152 | return Number.isFinite(parsed) ? parsed : undefined; |
| 153 | } |
| 154 | |
| 155 | function toOptionalBoolean(value: string | undefined): boolean | undefined { |
| 156 | if (!value) return undefined; |
no outgoing calls
no test coverage detected