(value: unknown)
| 234 | } |
| 235 | |
| 236 | function optionalNonEmptyString(value: unknown): string | undefined { |
| 237 | if (typeof value !== 'string') return undefined; |
| 238 | const trimmed = value.trim(); |
| 239 | return trimmed.length > 0 ? trimmed : undefined; |
| 240 | } |
no outgoing calls
no test coverage detected