(value: string | null | undefined)
| 105 | } |
| 106 | |
| 107 | function normalizeText(value: string | null | undefined): string | null { |
| 108 | if (typeof value !== 'string') { |
| 109 | return null; |
| 110 | } |
| 111 | const trimmed = value.trim(); |
| 112 | return trimmed.length > 0 ? trimmed : null; |
| 113 | } |
| 114 | |
| 115 | function normalizeStringList(value: string[] | null | undefined): string[] { |
| 116 | if (!Array.isArray(value)) { |
no outgoing calls
no test coverage detected