* Reads and trims a string config field, returning undefined when blank.
(value: unknown)
| 122 | * Reads and trims a string config field, returning undefined when blank. |
| 123 | */ |
| 124 | function readTrimmed(value: unknown): string | undefined { |
| 125 | if (typeof value !== 'string') return undefined |
| 126 | const trimmed = value.trim() |
| 127 | return trimmed.length > 0 ? trimmed : undefined |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Performs an authenticated GET against the X API v2 and returns the parsed JSON. |
no outgoing calls
no test coverage detected