(text: string)
| 20 | const FETCH_TIMEOUT_MS = 30_000 |
| 21 | |
| 22 | const tryParseJson = (text: string): unknown => { |
| 23 | try { |
| 24 | return JSON.parse(text) |
| 25 | } catch { |
| 26 | return null |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | const getErrorMessage = (value: unknown): string | undefined => { |
| 31 | if (!value || typeof value !== 'object') return undefined |
no test coverage detected