(value: string | undefined)
| 107 | } |
| 108 | |
| 109 | function parseBoolean(value: string | undefined): boolean | undefined { |
| 110 | if (!value) return undefined; |
| 111 | const normalized = value.trim().toLowerCase(); |
| 112 | if (['1', 'true', 'yes', 'on'].includes(normalized)) return true; |
| 113 | if (['0', 'false', 'no', 'off'].includes(normalized)) return false; |
| 114 | return undefined; |
| 115 | } |
| 116 | |
| 117 | function parsePositiveInt(value: string | undefined): number | undefined { |
| 118 | if (!value) return undefined; |
no outgoing calls
no test coverage detected